Packages

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

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ServerConfig
  2. Serializable
  3. Product
  4. Equals
  5. Config
  6. Config
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def acceptContinue(enable: Boolean): ServerConfig

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

  5. val acceptContinue: Boolean
  6. val address: InetSocketAddress
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def binding(inetSocketAddress: InetSocketAddress): ServerConfig

    Configure the server to listen on the provided InetSocketAddress.

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

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

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

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

  11. val channelType: ChannelType
    Definition Classes
    ServerConfigConfig
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  13. 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).

  14. val consolidateFlush: Boolean
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. 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).

  17. val flowControl: Boolean
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. 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).

  21. val keepAlive: Boolean
  22. def maxHeaderSize(headerSize: Int): ServerConfig

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

  23. val maxHeaderSize: Int
  24. def maxThreads(nThreads: Int): ServerConfig

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

  25. val nThreads: Int
    Definition Classes
    ServerConfigConfig
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. def objectAggregator(maxRequestSize: Int = 1024 * 100): ServerConfig

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

  30. val objectAggregator: Int
  31. def port(port: Int): ServerConfig

    Configure the server to listen on the provided port.

  32. def productElementNames: Iterator[String]
    Definition Classes
    Product
  33. def requestDecompression(isStrict: Boolean): ServerConfig

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

  34. val requestDecompression: Decompression
  35. def responseCompression(rCfg: ResponseCompressionConfig = ServerConfig.responseCompressionConfig()): ServerConfig

    Configure the new server with netty's HttpContentCompressor to compress Http responses (@see ).

  36. val responseCompression: Option[ResponseCompressionConfig]
  37. def ssl(sslConfig: SSLConfig): ServerConfig

    Configure the server with the following ssl options.

  38. val sslConfig: Option[SSLConfig]
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def useAggregator: Boolean
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped