Server

zio.http.Server
See theServer companion trait

Attributes

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

Members list

Type members

Classlikes

final case class Config(sslConfig: Option[SSLConfig], address: InetSocketAddress, acceptContinue: Boolean, keepAlive: Boolean, requestDecompression: Decompression, responseCompression: Option[ResponseCompressionConfig], requestStreaming: RequestStreaming, maxInitialLineLength: Int, maxHeaderSize: Int, logWarningOnFatalError: Boolean, gracefulShutdownTimeout: Duration, webSocketConfig: WebSocketConfig, idleTimeout: Option[Duration])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object Config

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Config.type

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait RequestStreaming

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Disabled
object Enabled.type

Value members

Concrete methods

def configured(path: NonEmptyChunk[String])(implicit trace: Trace): ZLayer[Any, Throwable, Server]
def defaultWith(f: Config => Config)(implicit trace: Trace): ZLayer[Any, Throwable, Server]
def defaultWithPort(port: Int)(implicit trace: Trace): ZLayer[Any, Throwable, Server]
def install[R](httpApp: HttpApp[R])(implicit trace: Trace): URIO[R & Server, Int]
def serve[R](httpApp: HttpApp[R])(implicit trace: Trace): URIO[R & Server, Nothing]

Concrete fields

val default: ZLayer[Any, Throwable, Server]

Inherited fields

val customized: ZLayer[Config, Throwable, Server]

Attributes

Inherited from:
ServerPlatformSpecific
val live: ZLayer[Config, Throwable, Server]

Attributes

Inherited from:
ServerPlatformSpecific