ServerConfig

zio.http.ServerConfig
See theServerConfig companion object
final case class ServerConfig(leakDetectionLevel: LeakDetectionLevel, sslConfig: Option[SSLConfig], address: InetSocketAddress, acceptContinue: Boolean, keepAlive: Boolean, consolidateFlush: Boolean, flowControl: Boolean, requestDecompression: Decompression, responseCompression: Option[ResponseCompressionConfig], objectAggregator: Int, channelType: ChannelType, nThreads: Int, maxHeaderSize: Int) extends Config

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Config
trait Config
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

Configure the server to use HttpServerExpectContinueHandler to send a 100 HttpResponse if necessary.

Configure the server to use HttpServerExpectContinueHandler to send a 100 HttpResponse if necessary.

Attributes

def binding(hostname: String, port: Int): ServerConfig

Configure the server to listen on the provided hostname and port.

Configure the server to listen on the provided hostname and port.

Attributes

def binding(address: InetAddress, port: Int): ServerConfig

Configure the server to listen on the provided InetAddress and port.

Configure the server to listen on the provided InetAddress and port.

Attributes

def binding(inetSocketAddress: InetSocketAddress): ServerConfig

Configure the server to listen on the provided InetSocketAddress.

Configure the server to listen on the provided InetSocketAddress.

Attributes

Configure the server to use netty FlowControlHandler if enable (@see FlowControlHandler).

Configure the server to use netty FlowControlHandler if enable (@see FlowControlHandler).

Attributes

Configure the server to use netty's HttpServerKeepAliveHandler to close persistent connections when enable is true (@see HttpServerKeepAliveHandler).

Configure the server to use netty's HttpServerKeepAliveHandler to close persistent connections when enable is true (@see HttpServerKeepAliveHandler).

Attributes

Configure the server to use the leak detection level provided (@see ResourceLeakDetector.Level).

Configure the server to use the leak detection level provided (@see ResourceLeakDetector.Level).

Attributes

def maxHeaderSize(headerSize: Int): ServerConfig

Configure the server to use maxHeaderSize value when encode/decode headers.

Configure the server to use maxHeaderSize value when encode/decode headers.

Attributes

def maxThreads(nThreads: Int): ServerConfig

Configure the server to use a maximum of nThreads to process requests.

Configure the server to use a maximum of nThreads to process requests.

Attributes

def objectAggregator(maxRequestSize: Int): ServerConfig

Configure the server to use HttpObjectAggregator with the specified max size of the aggregated content.

Configure the server to use HttpObjectAggregator with the specified max size of the aggregated content.

Attributes

def port(port: Int): ServerConfig

Configure the server to listen on the provided port.

Configure the server to listen on the provided port.

Attributes

Configure the server to use netty's HttpContentDecompressor to decompress Http requests (@see HttpContentDecompressor).

Configure the server to use netty's HttpContentDecompressor to decompress Http requests (@see HttpContentDecompressor).

Attributes

Configure the new server with netty's HttpContentCompressor to compress Http responses (@see <a href = "https://netty.io/4.1/api/io/netty/handler/codec/http/HttpContentCompressor.html"HttpContentCompressor).

Configure the new server with netty's HttpContentCompressor to compress Http responses (@see <a href = "https://netty.io/4.1/api/io/netty/handler/codec/http/HttpContentCompressor.html"HttpContentCompressor).

Attributes

def ssl(sslConfig: SSLConfig): ServerConfig

Configure the server with the following ssl options.

Configure the server with the following ssl options.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product