Packages

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
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Config
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

  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): Config

    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): Config

    Configure the server to listen on the provided InetSocketAddress.

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

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

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

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

  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  12. def disableRequestStreaming(maxContentLength: Int): Config

    Disables streaming of request bodies.

    Disables streaming of request bodies. Payloads larger than maxContentLength will be rejected

  13. def enableRequestStreaming: Config

    Enables streaming request bodies

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. def gracefulShutdownTimeout(duration: zio.Duration): Config
  17. val gracefulShutdownTimeout: zio.Duration
  18. def idleTimeout(duration: zio.Duration): Config
  19. val idleTimeout: Option[zio.Duration]
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. 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).

  22. val keepAlive: Boolean
  23. def logWarningOnFatalError(enable: Boolean): Config

    Log a warning in case of fatal errors when an error response cannot be sent back to the client

  24. val logWarningOnFatalError: Boolean
  25. def maxHeaderSize(headerSize: Int): Config

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

  26. val maxHeaderSize: Int
  27. def maxInitialLineLength(initialLineLength: Int): Config
  28. val maxInitialLineLength: Int
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def noIdleTimeout: Config
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  33. def onAnyOpenPort: Config

    Configure the server to listen on an available open port

  34. def port(port: Int): Config

    Configure the server to listen on the provided port.

  35. def productElementNames: Iterator[String]
    Definition Classes
    Product
  36. def requestDecompression(isStrict: Boolean): Config

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

  37. val requestDecompression: Decompression
  38. def requestStreaming(requestStreaming: RequestStreaming): Config

    Enables or disables request body streaming

  39. val requestStreaming: RequestStreaming
  40. def responseCompression(rCfg: ResponseCompressionConfig = Config.ResponseCompressionConfig.default): Config

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

  41. val responseCompression: Option[ResponseCompressionConfig]
  42. def ssl(sslConfig: SSLConfig): Config

    Configure the server with the following ssl options.

  43. val sslConfig: Option[SSLConfig]
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  47. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. def webSocketConfig(webSocketConfig: WebSocketConfig): Config
  49. val webSocketConfig: WebSocketConfig

Deprecated Value Members

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

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped