final case class ServerConfig(sslConfig: Option[SSLConfig] = None, address: InetSocketAddress = new InetSocketAddress(8080), acceptContinue: Boolean = false, keepAlive: Boolean = true, consolidateFlush: Boolean = false, flowControl: Boolean = true, requestDecompression: Decompression = Decompression.No, responseCompression: Option[ResponseCompressionConfig] = None, objectAggregator: Int = 1024 * 100, channelType: ChannelType = ChannelType.AUTO, nThreads: Int = 0, maxHeaderSize: Int = 8192) extends http.netty.EventLoopGroups.Config with Product with Serializable
- Self Type
- ServerConfig
- Alphabetic
- By Inheritance
- ServerConfig
- Serializable
- Product
- Equals
- Config
- Config
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ServerConfig(sslConfig: Option[SSLConfig] = None, address: InetSocketAddress = new InetSocketAddress(8080), acceptContinue: Boolean = false, keepAlive: Boolean = true, consolidateFlush: Boolean = false, flowControl: Boolean = true, requestDecompression: Decompression = Decompression.No, responseCompression: Option[ResponseCompressionConfig] = None, objectAggregator: Int = 1024 * 100, channelType: ChannelType = ChannelType.AUTO, nThreads: Int = 0, maxHeaderSize: Int = 8192)
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): ServerConfig
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): ServerConfig
Configure the server to listen on the provided InetSocketAddress.
- def binding(address: InetAddress, port: Int): ServerConfig
Configure the server to listen on the provided InetAddress and port.
- def binding(hostname: String, port: Int): ServerConfig
Configure the server to listen on the provided hostname and port.
- val channelType: ChannelType
- Definition Classes
- ServerConfig → Config
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def consolidateFlush(enable: Boolean): ServerConfig
Configure the server to use FlushConsolidationHandler to control the flush operations in a more efficient way if enabled (@see <a href="https://netty.io/4.1/api/io/netty/handler/flush/FlushConsolidationHandler.html">FlushConsolidationHandler).
Configure the server to use FlushConsolidationHandler to control the flush operations in a more efficient way if enabled (@see <a href="https://netty.io/4.1/api/io/netty/handler/flush/FlushConsolidationHandler.html">FlushConsolidationHandler).
- val consolidateFlush: Boolean
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def flowControl(enable: Boolean): ServerConfig
Configure the server to use netty FlowControlHandler if enable (@see <a href="https://netty.io/4.1/api/io/netty/handler/flow/FlowControlHandler.html">FlowControlHandler).
- val flowControl: Boolean
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def keepAlive(enable: Boolean): ServerConfig
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 maxHeaderSize(headerSize: Int): ServerConfig
Configure the server to use
maxHeaderSize
value when encode/decode headers. - val maxHeaderSize: Int
- def maxThreads(nThreads: Int): ServerConfig
Configure the server to use a maximum of nThreads to process requests.
- val nThreads: Int
- Definition Classes
- ServerConfig → Config
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def objectAggregator(maxRequestSize: Int = 1024 * 100): ServerConfig
Configure the server to use HttpObjectAggregator with the specified max size of the aggregated content.
- val objectAggregator: Int
- def port(port: Int): ServerConfig
Configure the server to listen on the provided port.
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def requestDecompression(isStrict: Boolean): ServerConfig
Configure the server to use netty's HttpContentDecompressor to decompress Http requests (@see HttpContentDecompressor).
- val requestDecompression: Decompression
- def responseCompression(rCfg: ResponseCompressionConfig = ServerConfig.responseCompressionConfig()): ServerConfig
Configure the new server with netty's HttpContentCompressor to compress Http responses (@see ).
- val responseCompression: Option[ResponseCompressionConfig]
- def ssl(sslConfig: SSLConfig): ServerConfig
Configure the server with the following ssl options.
- val sslConfig: Option[SSLConfig]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def useAggregator: Boolean
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])