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 port: UIO[Int]

The port on which the server is listening.

The port on which the server is listening.

Attributes

Concrete methods

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

Installs the given HTTP application into the server.

Installs the given HTTP application into the server.

Attributes