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: zio.Duration, webSocketConfig: WebSocketConfig, idleTimeout: Option[zio.Duration]) extends Product with Serializable
- Self Type
- Config
- Alphabetic
- By Inheritance
- Config
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Config(sslConfig: Option[SSLConfig], address: InetSocketAddress, acceptContinue: Boolean, keepAlive: Boolean, requestDecompression: Decompression, responseCompression: Option[ResponseCompressionConfig], requestStreaming: RequestStreaming, maxInitialLineLength: Int, maxHeaderSize: Int, logWarningOnFatalError: Boolean, gracefulShutdownTimeout: zio.Duration, webSocketConfig: WebSocketConfig, idleTimeout: Option[zio.Duration])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
acceptContinue(enable: Boolean): Config
Configure the server to use HttpServerExpectContinueHandler to send a 100 HttpResponse if necessary.
- val acceptContinue: Boolean
- val address: InetSocketAddress
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
binding(inetSocketAddress: InetSocketAddress): Config
Configure the server to listen on the provided InetSocketAddress.
-
def
binding(address: InetAddress, port: Int): Config
Configure the server to listen on the provided InetAddress and port.
-
def
binding(hostname: String, port: Int): Config
Configure the server to listen on the provided hostname and port.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
disableRequestStreaming(maxContentLength: Int): Config
Disables streaming of request bodies.
Disables streaming of request bodies. Payloads larger than maxContentLength will be rejected
-
def
enableRequestStreaming: Config
Enables streaming request bodies
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def gracefulShutdownTimeout(duration: zio.Duration): Config
- val gracefulShutdownTimeout: zio.Duration
- def idleTimeout(duration: zio.Duration): Config
- val idleTimeout: Option[zio.Duration]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keepAlive(enable: Boolean): Config
Configure the server to use netty's HttpServerKeepAliveHandler to close persistent connections when enable is true (@see <a href="https://netty.io/4.1/api/io/netty/handler/codec/http/HttpServerKeepAliveHandler.html">HttpServerKeepAliveHandler).
- val keepAlive: Boolean
-
def
logWarningOnFatalError(enable: Boolean): Config
Log a warning in case of fatal errors when an error response cannot be sent back to the client
- val logWarningOnFatalError: Boolean
-
def
maxHeaderSize(headerSize: Int): Config
Configure the server to use
maxHeaderSizevalue when encode/decode headers. - val maxHeaderSize: Int
- def maxInitialLineLength(initialLineLength: Int): Config
- val maxInitialLineLength: Int
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noIdleTimeout: Config
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
onAnyOpenPort: Config
Configure the server to listen on an available open port
-
def
port(port: Int): Config
Configure the server to listen on the provided port.
-
def
requestDecompression(isStrict: Boolean): Config
Configure the server to use netty's HttpContentDecompressor to decompress Http requests (@see HttpContentDecompressor).
- val requestDecompression: Decompression
-
def
requestStreaming(requestStreaming: RequestStreaming): Config
Enables or disables request body streaming
- val requestStreaming: RequestStreaming
-
def
responseCompression(rCfg: ResponseCompressionConfig = ...): Config
Configure the new server with netty's HttpContentCompressor to compress Http responses (@see ).
- val responseCompression: Option[ResponseCompressionConfig]
-
def
ssl(sslConfig: SSLConfig): Config
Configure the server with the following ssl options.
- val sslConfig: Option[SSLConfig]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def webSocketConfig(webSocketConfig: WebSocketConfig): Config
- val webSocketConfig: WebSocketConfig