Set the list of compressor to use instead of using the default gzip/deflate HttpServerOptions configuration.
This is only active when HttpServerOptions is true
.
Add a CRL path
Add a CRL value
Add an enabled cipher suite, appended to the ordered suites.
Sets the list of enabled SSL/TLS protocols.
Set the WebSocket list of sub-protocol supported by the server.
Set the accept back log
Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.
Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiatiation.
Set whether client auth is required
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
Set the list of compressor to use instead of using the default gzip/deflate HttpServerOptions configuration.
This is only active when HttpServerOptions is true
.
Add a CRL path
Add a CRL value
Set the initial buffer size for the HTTP decoder
Add an enabled cipher suite, appended to the ordered suites.
Sets the list of enabled SSL/TLS protocols.
Set the host
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.
Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout.
If you want change default time unit, use HttpServerOptions
Set the idle timeout unit. If not specified, default is seconds.
Set the HTTP/2 connection settings immediatly sent by the server when a client connects.
Set the key/cert options in jks format, aka Java keystore.
Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.
Set the maximum HTTP chunk size that {@link HttpServerRequest#handler} will receive
Set the maximum size of a form attribute. Set to -1
to allow unlimited length
Set the maximum length of all headers for HTTP/1.x .
Set the maximum length of the initial line for HTTP/1.x (e.g. "GET / HTTP/1.0"
)
Set the maximum WebSocket frames size
Set the maximum WebSocket message size
Set the key/cert store options in pem format.
Set the trust options in pem format
Enable or disable support for the WebSocket per-frame deflate compression extension.
Enable or disable support for WebSocket per-message deflate compression extension.
Set the key/cert options in pfx format.
Set the trust options in pfx format
Set the port
Set the Proxy protocol timeout, default time unit is seconds.
Set the Proxy protocol timeout unit. If not specified, default is seconds.
Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout.
If you want change default time unit, use HttpServerOptions
Set the TCP receive buffer size
Set the TCP send buffer size
Set whether SO_linger keep alive is enabled
Set to use SSL engine implementation to use.
Set the SSL handshake timeout, default time unit is seconds.
Set the SSL handshake timeout unit. If not specified, default is seconds.
Sets the TCP_USER_TIMEOUT
option - only with linux native transport.
Set the tracing policy for the server behavior when Vert.x has tracing enabled.
Set the value of traffic class
Set the trust options.
Set the trust options in jks format, aka Java truststore
Set whether the WebSocket server will accept the server_no_context_takeover
parameter of the per-message
deflate compression extension offered by the client.
Set the amount of time a server WebSocket will wait until it closes the TCP connection after sending a close frame.
When a server closes a WebSocket, it should wait the client close frame to close the TCP connection. This timeout will close the TCP connection on the server when it expires. When the TCP connection is closed receiving the close frame, the {@link WebSocket#exceptionHandler} instead of the {@link WebSocket#endHandler} will be called.
Set to 0L
closes the TCP connection immediately after sending the close frame.
Set to a negative value to disable it.
Set the WebSocket compression level.
Set whether the WebSocket server will accept the client_no_context_takeover
parameter of the per-message
deflate compression extension offered by the client.
Set the WebSocket list of sub-protocol supported by the server.
Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout.
If you want change default time unit, use HttpServerOptions
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.
Set whether the server should support gzip/deflate compression (serving compressed responses to clients advertising support for them with Accept-Encoding header)
Set whether the server supports decompression
Set whether 100 Continue should be handled automatically
Whether write-handlers for server websockets should be registered on the EventBus.
Defaults to false
.
Has no effect on HTTP server options.
Set the value of reuse address
Set the value of reuse port.
This is only supported by native transports.Set whether the server supports Server Name Indiciation
Set whether SSL/TLS is enabled
Enable the TCP_CORK
option - only with linux native transport.
Enable the TCP_FASTOPEN
option - only with linux native transport.
Set whether TCP keep alive is enabled
Set whether TCP no delay is enabled
Enable the TCP_QUICKACK
option - only with linux native transport.
Set the ALPN usage.
Set whether the server uses the HA Proxy protocol
Set the accept back log
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.
Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.
Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiatiation.
Set whether client auth is required
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
Set whether the server should support gzip/deflate compression (serving compressed responses to clients advertising support for them with Accept-Encoding header)
Set the list of compressor to use instead of using the default gzip/deflate HttpServerOptions configuration.
This is only active when HttpServerOptions is true
.
Set the initial buffer size for the HTTP decoder
Set whether the server supports decompression
Sets the list of enabled SSL/TLS protocols.
Set whether 100 Continue should be handled automatically
Set the host
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.
Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout.
If you want change default time unit, use HttpServerOptions
Set the idle timeout unit. If not specified, default is seconds.
Set the HTTP/2 connection settings immediatly sent by the server when a client connects.
Set the key/cert options.
Set the key/cert options in jks format, aka Java keystore.
Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.
Set the maximum HTTP chunk size that {@link HttpServerRequest#handler} will receive
Set the maximum size of a form attribute. Set to -1
to allow unlimited length
Set the maximum length of all headers for HTTP/1.x .
Set the maximum length of the initial line for HTTP/1.x (e.g. "GET / HTTP/1.0"
)
Set the maximum WebSocket frames size
Set the maximum WebSocket message size
Set the key/cert store options in pem format.
Set the trust options in pem format
Enable or disable support for the WebSocket per-frame deflate compression extension.
Enable or disable support for WebSocket per-message deflate compression extension.
Set the key/cert options in pfx format.
Set the trust options in pfx format
Set the port
Set the Proxy protocol timeout, default time unit is seconds.
Set the Proxy protocol timeout unit. If not specified, default is seconds.
Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout.
If you want change default time unit, use HttpServerOptions
Set the TCP receive buffer size
Whether write-handlers for server websockets should be registered on the EventBus.
Defaults to false
.
Has no effect on HTTP server options.
Set the value of reuse address
Set the value of reuse port.
This is only supported by native transports.Set the TCP send buffer size
Set whether the server supports Server Name Indiciation
Set whether SO_linger keep alive is enabled
Set whether SSL/TLS is enabled
Set to use SSL engine implementation to use.
Set the SSL handshake timeout, default time unit is seconds.
Set the SSL handshake timeout unit. If not specified, default is seconds.
Enable the TCP_CORK
option - only with linux native transport.
Enable the TCP_FASTOPEN
option - only with linux native transport.
Set whether TCP keep alive is enabled
Set whether TCP no delay is enabled
Enable the TCP_QUICKACK
option - only with linux native transport.
Sets the TCP_USER_TIMEOUT
option - only with linux native transport.
Set the tracing policy for the server behavior when Vert.x has tracing enabled.
Set the value of traffic class
Set the trust options.
Set the trust options in jks format, aka Java truststore
Set the ALPN usage.
Set whether the server uses the HA Proxy protocol
Set whether the WebSocket server will accept the server_no_context_takeover
parameter of the per-message
deflate compression extension offered by the client.
Set the amount of time a server WebSocket will wait until it closes the TCP connection after sending a close frame.
When a server closes a WebSocket, it should wait the client close frame to close the TCP connection. This timeout will close the TCP connection on the server when it expires. When the TCP connection is closed receiving the close frame, the {@link WebSocket#exceptionHandler} instead of the {@link WebSocket#endHandler} will be called.
Set to 0L
closes the TCP connection immediately after sending the close frame.
Set to a negative value to disable it.
Set the WebSocket compression level.
Set whether the WebSocket server will accept the client_no_context_takeover
parameter of the per-message
deflate compression extension offered by the client.
Set the WebSocket list of sub-protocol supported by the server.
Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout.
If you want change default time unit, use HttpServerOptions
Generated using TypeDoc
Represents options used by an HttpServer instance