Server

zio.http.Server
See theServer companion object
trait Server

Represents a server, which is capable of serving zero or more HTTP applications.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def install[R](routes: Routes[R, Response])(implicit trace: Trace, tag: Tag[R]): URIO[R, Unit]

Installs the given HTTP application into the server.

Installs the given HTTP application into the server.

Attributes

def port: UIO[Int]

The port on which the server is listening.

The port on which the server is listening.

Attributes