public static final class HttpServerOptions.Builder extends ServerOptions.Builder<HttpServerOptions.Builder>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INITIAL_BUFFER_SIZE |
static int |
DEFAULT_MAX_CHUNK_SIZE |
static int |
DEFAULT_MAX_HEADER_SIZE |
static int |
DEFAULT_MAX_INITIAL_LINE_LENGTH |
static boolean |
DEFAULT_VALIDATE_HEADERS |
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.
|
HttpServerOptions.Builder |
initialBufferSize(int value)
Configure the initial buffer size for HTTP request decoding.
|
HttpServerOptions.Builder |
maxChunkSize(int value)
Configure the maximum chunk size that can be decoded for the HTTP request.
|
HttpServerOptions.Builder |
maxHeaderSize(int value)
Configure the maximum header size that can be decoded for the HTTP request.
|
HttpServerOptions.Builder |
maxInitialLineLength(int value)
Configure the maximum length that can be decoded for the HTTP request's initial
line.
|
HttpServerOptions.Builder |
validateHeaders(boolean validate)
Configure whether or not to validate headers when decoding requests.
|
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 static final int DEFAULT_MAX_INITIAL_LINE_LENGTH
public static final int DEFAULT_MAX_HEADER_SIZE
public static final int DEFAULT_MAX_CHUNK_SIZE
public static final boolean DEFAULT_VALIDATE_HEADERS
public static final int DEFAULT_INITIAL_BUFFER_SIZE
public 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 maxInitialLineLength(int value)
#DEFAULT_MAX_INITIAL_LINE_LENGTH.value - the value for the maximum initial line length (strictly positive)public final HttpServerOptions.Builder maxHeaderSize(int value)
DEFAULT_MAX_HEADER_SIZE.value - the value for the maximum header size (strictly positive)public final HttpServerOptions.Builder maxChunkSize(int value)
DEFAULT_MAX_CHUNK_SIZE.value - the value for the maximum chunk size (strictly positive)public final HttpServerOptions.Builder validateHeaders(boolean validate)
validate - true to validate headers, false otherwisepublic final HttpServerOptions.Builder initialBufferSize(int value)
DEFAULT_INITIAL_BUFFER_SIZE.value - the initial buffer size to use (strictly positive)public final HttpServerOptions.Builder from(HttpServerOptions options)
options - The instance from which to copy valuesthispublic HttpServerOptions build()
build in class ServerOptions.Builder<HttpServerOptions.Builder>