class HttpServerOptions extends NetServerOptions

Represents options used by an io.vertx.scala.core.http.HttpServer instance

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpServerOptions
  2. NetServerOptions
  3. TCPSSLOptions
  4. NetworkOptions
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpServerOptions(_asJava: core.http.HttpServerOptions)

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 addCrlPath(value: String): HttpServerOptions

    Add a CRL path

    Add a CRL path

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  5. def addCrlValue(value: Buffer): HttpServerOptions

    Add a CRL value

    Add a CRL value

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  6. def addEnabledCipherSuite(value: String): HttpServerOptions

    Add an enabled cipher suite, appended to the ordered suites.

    Add an enabled cipher suite, appended to the ordered suites.

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  7. def addEnabledSecureTransportProtocol(value: String): HttpServerOptions

    Sets the list of enabled SSL/TLS protocols.

    Sets the list of enabled SSL/TLS protocols.

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def asJava: core.http.HttpServerOptions
    Definition Classes
    HttpServerOptionsNetServerOptions
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def getAcceptBacklog: Int
    Definition Classes
    HttpServerOptionsNetServerOptions
  15. def getAlpnVersions: Buffer[HttpVersion]
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getClientAuth: ClientAuth
    Definition Classes
    HttpServerOptionsNetServerOptions
  18. def getCompressionLevel: Int
  19. def getCrlPaths: Buffer[String]
  20. def getCrlValues: Buffer[Buffer]
  21. def getDecoderInitialBufferSize: Int
  22. def getEnabledCipherSuites: Set[String]
  23. def getEnabledSecureTransportProtocols: Set[String]
  24. def getHost: String
    Definition Classes
    HttpServerOptionsNetServerOptions
  25. def getHttp2ConnectionWindowSize: Int
  26. def getIdleTimeout: Int
  27. def getInitialSettings: Http2Settings
  28. def getJdkSslEngineOptions: JdkSSLEngineOptions
  29. def getKeyStoreOptions: JksOptions
  30. def getLogActivity: Boolean
  31. def getMaxChunkSize: Int
  32. def getMaxHeaderSize: Int
  33. def getMaxInitialLineLength: Int
  34. def getMaxWebsocketFrameSize: Int
  35. def getMaxWebsocketMessageSize: Int
  36. def getOpenSslEngineOptions: OpenSSLEngineOptions
  37. def getPemKeyCertOptions: PemKeyCertOptions
  38. def getPemTrustOptions: PemTrustOptions
  39. def getPfxKeyCertOptions: PfxOptions
  40. def getPfxTrustOptions: PfxOptions
  41. def getPort: Int
    Definition Classes
    HttpServerOptionsNetServerOptions
  42. def getReceiveBufferSize: Int
  43. def getSendBufferSize: Int
  44. def getSoLinger: Int
  45. def getTrafficClass: Int
  46. def getTrustStoreOptions: JksOptions
  47. def getWebsocketSubProtocols: String
  48. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  49. def isAcceptUnmaskedFrames: Boolean
  50. def isClientAuthRequired: Boolean
    Definition Classes
    HttpServerOptionsNetServerOptions
  51. def isCompressionSupported: Boolean
  52. def isDecompressionSupported: Boolean
  53. def isHandle100ContinueAutomatically: Boolean
  54. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  55. def isReuseAddress: Boolean
  56. def isReusePort: Boolean
  57. def isSni: Boolean
    Definition Classes
    HttpServerOptionsNetServerOptions
  58. def isSsl: Boolean
  59. def isTcpCork: Boolean
  60. def isTcpFastOpen: Boolean
  61. def isTcpKeepAlive: Boolean
  62. def isTcpNoDelay: Boolean
  63. def isTcpQuickAck: Boolean
  64. def isUseAlpn: Boolean
  65. def isUsePooledBuffers: Boolean
  66. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  67. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  68. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  69. def setAcceptBacklog(value: Int): HttpServerOptions

    Set the accept back log

    Set the accept back log

    Definition Classes
    HttpServerOptionsNetServerOptions
  70. def setAcceptUnmaskedFrames(value: Boolean): HttpServerOptions

    Set true when the server accepts unmasked frame.

    Set true when the server accepts unmasked frame. As default Server doesn't accept unmasked frame, you can bypass this behaviour (RFC 6455) setting true It's set to false as default.

  71. def setAlpnVersions(value: Buffer[HttpVersion]): HttpServerOptions

    Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiatiation.

  72. def setClientAuth(value: ClientAuth): HttpServerOptions

    Set whether client auth is required

    Set whether client auth is required

    Definition Classes
    HttpServerOptionsNetServerOptions
  73. def setClientAuthRequired(value: Boolean): HttpServerOptions

    Set whether client auth is required

    Set whether client auth is required

    Definition Classes
    HttpServerOptionsNetServerOptions
  74. def setCompressionLevel(value: Int): HttpServerOptions

    This method allows to set the compression level to be used in http1.x/2 response bodies when compression support is turned on (@see setCompressionSupported) and the client advertises to support deflate/gzip compression in the Accept-Encoding header

    This method allows to set the compression level to be used in http1.x/2 response bodies when compression support is turned on (@see setCompressionSupported) and the client advertises to support deflate/gzip compression in the Accept-Encoding header

    default value is : 6 (Netty legacy)

    The compression level determines how much the data is compressed on a scale from 1 to 9, where '9' is trying to achieve the maximum compression ratio while '1' instead is giving priority to speed instead of compression ratio using some algorithm optimizations and skipping pedantic loops that usually gives just little improvements

    While one can think that best value is always the maximum compression ratio, there's a trade-off to consider: the most compressed level requires the most computational work to compress/decompress data, e.g. more dictionary lookups and loops.

    E.g. you have it set fairly high on a high-volume website, you may experience performance degradation and latency on resource serving due to CPU overload, and, however - as the computational work is required also client side while decompressing - setting an higher compression level can result in an overall higher page load time especially nowadays when many clients are handled mobile devices with a low CPU profile.

    see also: http://www.gzip.org/algorithm.txt

  75. def setCompressionSupported(value: Boolean): HttpServerOptions

    Set whether the server should support gzip/deflate compression (serving compressed responses to clients advertising support for them with Accept-Encoding header)

  76. def setDecoderInitialBufferSize(value: Int): HttpServerOptions

    Set the initial buffer size for the HTTP decoder

  77. def setDecompressionSupported(value: Boolean): HttpServerOptions

    Set whether the server supports decompression

  78. def setEnabledSecureTransportProtocols(value: Set[String]): HttpServerOptions
  79. def setHandle100ContinueAutomatically(value: Boolean): HttpServerOptions

    Set whether 100 Continue should be handled automatically

  80. def setHost(value: String): HttpServerOptions

    Set the host

    Set the host

    Definition Classes
    HttpServerOptionsNetServerOptions
  81. def setHttp2ConnectionWindowSize(value: Int): HttpServerOptions

    Set the default HTTP/2 connection window size.

    Set the default HTTP/2 connection window size. It overrides the initial window size set by Http2Settings, so the connection window size is greater than for its streams, in order the data throughput.

    A value of -1 reuses the initial window size setting.

  82. def setIdleTimeout(value: Int): HttpServerOptions

    Set the idle timeout, in seconds.

    Set the idle timeout, in seconds. zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout.

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  83. def setInitialSettings(value: Http2Settings): HttpServerOptions

    Set the HTTP/2 connection settings immediatly sent by the server when a client connects.

  84. def setJdkSslEngineOptions(value: JdkSSLEngineOptions): HttpServerOptions
  85. def setKeyStoreOptions(value: JksOptions): HttpServerOptions

    Set the key/cert options in jks format, aka Java keystore.

    Set the key/cert options in jks format, aka Java keystore.

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  86. def setLogActivity(value: Boolean): HttpServerOptions

    Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.

    Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptionsNetworkOptions
  87. def setMaxChunkSize(value: Int): HttpServerOptions

    Set the maximum HTTP chunk size

  88. def setMaxHeaderSize(value: Int): HttpServerOptions

    Set the maximum length of all headers for HTTP/1.x .

  89. def setMaxInitialLineLength(value: Int): HttpServerOptions

    Set the maximum length of the initial line for HTTP/1.x (e.g.

    Set the maximum length of the initial line for HTTP/1.x (e.g. "GET / HTTP/1.0")

  90. def setMaxWebsocketFrameSize(value: Int): HttpServerOptions

    Set the maximum websocket frames size

  91. def setMaxWebsocketMessageSize(value: Int): HttpServerOptions

    Set the maximum websocket message size

  92. def setOpenSslEngineOptions(value: OpenSSLEngineOptions): HttpServerOptions
  93. def setPemKeyCertOptions(value: PemKeyCertOptions): HttpServerOptions

    Set the key/cert store options in pem format.

    Set the key/cert store options in pem format.

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  94. def setPemTrustOptions(value: PemTrustOptions): HttpServerOptions

    Set the trust options in pem format

    Set the trust options in pem format

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  95. def setPfxKeyCertOptions(value: PfxOptions): HttpServerOptions

    Set the key/cert options in pfx format.

    Set the key/cert options in pfx format.

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  96. def setPfxTrustOptions(value: PfxOptions): HttpServerOptions

    Set the trust options in pfx format

    Set the trust options in pfx format

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  97. def setPort(value: Int): HttpServerOptions

    Set the port

    Set the port

    Definition Classes
    HttpServerOptionsNetServerOptions
  98. def setReceiveBufferSize(value: Int): HttpServerOptions

    Set the TCP receive buffer size

    Set the TCP receive buffer size

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptionsNetworkOptions
  99. def setReuseAddress(value: Boolean): HttpServerOptions

    Set the value of reuse address

    Set the value of reuse address

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptionsNetworkOptions
  100. def setReusePort(value: Boolean): HttpServerOptions

    Set the value of reuse port.

    Set the value of reuse port.

    This is only supported by native transports.

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptionsNetworkOptions
  101. def setSendBufferSize(value: Int): HttpServerOptions

    Set the TCP send buffer size

    Set the TCP send buffer size

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptionsNetworkOptions
  102. def setSni(value: Boolean): HttpServerOptions

    Set whether the server supports Server Name Indiciation

    Set whether the server supports Server Name Indiciation

    Definition Classes
    HttpServerOptionsNetServerOptions
  103. def setSoLinger(value: Int): HttpServerOptions

    Set whether SO_linger keep alive is enabled

    Set whether SO_linger keep alive is enabled

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  104. def setSsl(value: Boolean): HttpServerOptions

    Set whether SSL/TLS is enabled

    Set whether SSL/TLS is enabled

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  105. def setTcpCork(value: Boolean): HttpServerOptions

    Enable the TCP_CORK option - only with linux native transport.

    Enable the TCP_CORK option - only with linux native transport.

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  106. def setTcpFastOpen(value: Boolean): HttpServerOptions

    Enable the TCP_FASTOPEN option - only with linux native transport.

    Enable the TCP_FASTOPEN option - only with linux native transport.

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  107. def setTcpKeepAlive(value: Boolean): HttpServerOptions

    Set whether TCP keep alive is enabled

    Set whether TCP keep alive is enabled

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  108. def setTcpNoDelay(value: Boolean): HttpServerOptions

    Set whether TCP no delay is enabled

    Set whether TCP no delay is enabled

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  109. def setTcpQuickAck(value: Boolean): HttpServerOptions

    Enable the TCP_QUICKACK option - only with linux native transport.

    Enable the TCP_QUICKACK option - only with linux native transport.

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  110. def setTrafficClass(value: Int): HttpServerOptions

    Set the value of traffic class

    Set the value of traffic class

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptionsNetworkOptions
  111. def setTrustStoreOptions(value: JksOptions): HttpServerOptions

    Set the trust options in jks format, aka Java truststore

    Set the trust options in jks format, aka Java truststore

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  112. def setUseAlpn(value: Boolean): HttpServerOptions

    Set the ALPN usage.

    Set the ALPN usage.

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  113. def setUsePooledBuffers(value: Boolean): HttpServerOptions

    Set whether Netty pooled buffers are enabled

    Set whether Netty pooled buffers are enabled

    Definition Classes
    HttpServerOptionsNetServerOptionsTCPSSLOptions
  114. def setWebsocketSubProtocols(value: String): HttpServerOptions

    Set the websocket subprotocols supported by the server.

  115. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  116. def toString(): String
    Definition Classes
    AnyRef → Any
  117. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  118. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  119. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from NetServerOptions

Inherited from TCPSSLOptions

Inherited from NetworkOptions

Inherited from AnyRef

Inherited from Any

Ungrouped