Server

zio.http.Server$
See theServer companion trait
object Server

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Server.type

Members list

Concise view

Type members

Types

type ErrorCallback = Cause[Nothing] => ZIO[Any, Nothing, Unit]

Value members

Concrete methods

def defaultWith(f: ServerConfig => ServerConfig)(implicit trace: Trace): ZLayer[Any, Throwable, Server]
def defaultWithPort(port: Int)(implicit trace: Trace): ZLayer[Any, Throwable, Server]
def install[R](httpApp: App[R], errorCallback: Option[ErrorCallback])(implicit trace: Trace): URIO[R & Server, Int]
def live(conf: ServerConfig)(implicit trace: Trace): ZLayer[Any, Throwable, Server]
def serve[R](httpApp: App[R], errorCallback: Option[ErrorCallback])(implicit trace: Trace): URIO[R & Server, Nothing]