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
Source
Server.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class TestServer

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

Source
Server.scala

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

Source
Server.scala