Server

zio.http.Server
See theServer companion trait

Attributes

Companion
trait
Source
Server.scala
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], avoidContextSwitching: Boolean, soBacklog: Int, tcpNoDelay: Boolean, generateHeadRoutes: Boolean = ..., requestBodyPreConnectBufferSize: Int = ...)

Attributes

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

Attributes

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

Attributes

Companion
trait
Source
Server.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait RequestStreaming

Attributes

Companion
object
Source
Server.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Disabled
object Enabled
class Hybrid

Value members

Concrete methods

def configured(path: NonEmptyChunk[String] = ...)(implicit trace: Trace): ZLayer[Any, Throwable, Server]

Attributes

Source
Server.scala
def defaultWith(f: Config => Config)(implicit trace: Trace): ZLayer[Any, Throwable, Server]

Attributes

Source
Server.scala
def defaultWithPort(port: Int)(implicit trace: Trace): ZLayer[Any, Throwable, Server]

Attributes

Source
Server.scala
def install[R](routes: Routes[R, Response])(implicit trace: Trace, tag: Tag[R], hasNoScope: HasNoScope[R]): URIO[R & Server, Int]

Attributes

Source
Server.scala
def serve[R](routes: Routes[R, Response])(implicit trace: Trace, tag: Tag[R], hasNoScope: HasNoScope[R]): URIO[R & Server, Nothing]

Attributes

Source
Server.scala
def serve[R](route: Route[R, Response], routes: Route[R, Response]*)(implicit trace: Trace, tag: Tag[R], hasNoScope: HasNoScope[R]): URIO[R & Server, Nothing]

Attributes

Source
Server.scala
def serve[R, Err](routes: Routes[R, Err])(implicit trace: Trace, tag: Tag[R], hasNoScope: HasNoScope[R], ev: CanServe[Err]): URIO[R & Server, Nothing]

Attributes

Source
Server.scala

Concrete fields

Attributes

Source
Server.scala