public static final class HttpServerOptions.Builder extends ServerOptions.Builder<HttpServerOptions.Builder>
bootstrapTemplate| Modifier and Type | Method and Description |
|---|---|
HttpServerOptions |
build() |
HttpServerOptions.Builder |
compression(boolean enabled)
Enable GZip response compression if the client request presents accept encoding
headers
|
HttpServerOptions.Builder |
compression(int minResponseSize)
Enable GZip response compression if the client request presents accept encoding
headers
AND the response reaches a minimum threshold
|
HttpServerOptions.Builder |
from(HttpServerOptions options)
Fill the builder with attribute values from the provided options.
|
attr, from, get, host, listenAddress, option, port, selectorAttr, selectorOption, sslSelfSigned, sslSelfSignedafterChannelInit, afterNettyContextInit, channelGroup, eventLoopGroup, isLoopAvailable, loopResources, onChannelInit, preferNative, sslCloseNotifyFlushTimeout, sslCloseNotifyFlushTimeoutMillis, sslCloseNotifyReadTimeout, sslCloseNotifyReadTimeoutMillis, sslContext, sslHandshakeTimeout, sslHandshakeTimeoutMillispublic final HttpServerOptions.Builder compression(boolean enabled)
enabled - true whether compression is enabledthispublic final HttpServerOptions.Builder compression(int minResponseSize)
minResponseSize - compression is performed once response size exceeds given
value in bytethispublic final HttpServerOptions.Builder from(HttpServerOptions options)
options - The instance from which to copy valuesthispublic HttpServerOptions build()
build in class ServerOptions.Builder<HttpServerOptions.Builder>