public final class HttpRequestDecoderSpec extends HttpDecoderSpec<HttpRequestDecoderSpec>
HttpServerCodec
(or more precisely the HttpServerCodec.HttpServerRequestDecoder
).
Defaults are accessible as constants HttpDecoderSpec.DEFAULT_MAX_INITIAL_LINE_LENGTH
, HttpDecoderSpec.DEFAULT_MAX_HEADER_SIZE
,
HttpDecoderSpec.DEFAULT_MAX_CHUNK_SIZE
, HttpDecoderSpec.DEFAULT_INITIAL_BUFFER_SIZE
and HttpDecoderSpec.DEFAULT_VALIDATE_HEADERS
.
DEFAULT_INITIAL_BUFFER_SIZE, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_HEADER_SIZE, DEFAULT_MAX_INITIAL_LINE_LENGTH, DEFAULT_VALIDATE_HEADERS, initialBufferSize, maxChunkSize, maxHeaderSize, maxInitialLineLength, validateHeaders
Constructor and Description |
---|
HttpRequestDecoderSpec() |
Modifier and Type | Method and Description |
---|---|
HttpRequestDecoderSpec |
get() |
HttpRequestDecoderSpec |
initialBufferSize(int value)
Configure the initial buffer size for HTTP request decoding.
|
HttpRequestDecoderSpec |
maxChunkSize(int value)
Configure the maximum chunk size that can be decoded for the HTTP request.
|
HttpRequestDecoderSpec |
maxHeaderSize(int value)
Configure the maximum header size that can be decoded for the HTTP request.
|
HttpRequestDecoderSpec |
maxInitialLineLength(int value)
Configure the maximum length that can be decoded for the HTTP request's initial
line.
|
HttpRequestDecoderSpec |
validateHeaders(boolean validate)
Configure whether or not to validate headers when decoding requests.
|
initialBufferSize, maxChunkSize, maxHeaderSize, maxInitialLineLength, validateHeaders
public HttpRequestDecoderSpec maxInitialLineLength(int value)
HttpDecoderSpec
HttpDecoderSpec.DEFAULT_MAX_INITIAL_LINE_LENGTH
.maxInitialLineLength
in class HttpDecoderSpec<HttpRequestDecoderSpec>
value
- the value for the maximum initial line length (strictly positive)public HttpRequestDecoderSpec maxHeaderSize(int value)
HttpDecoderSpec
HttpDecoderSpec.DEFAULT_MAX_HEADER_SIZE
.maxHeaderSize
in class HttpDecoderSpec<HttpRequestDecoderSpec>
value
- the value for the maximum header size (strictly positive)public HttpRequestDecoderSpec maxChunkSize(int value)
HttpDecoderSpec
HttpDecoderSpec.DEFAULT_MAX_CHUNK_SIZE
.maxChunkSize
in class HttpDecoderSpec<HttpRequestDecoderSpec>
value
- the value for the maximum chunk size (strictly positive)public HttpRequestDecoderSpec validateHeaders(boolean validate)
HttpDecoderSpec
validateHeaders
in class HttpDecoderSpec<HttpRequestDecoderSpec>
validate
- true to validate headers, false otherwisepublic HttpRequestDecoderSpec initialBufferSize(int value)
HttpDecoderSpec
HttpDecoderSpec.DEFAULT_INITIAL_BUFFER_SIZE
.initialBufferSize
in class HttpDecoderSpec<HttpRequestDecoderSpec>
value
- the initial buffer size to use (strictly positive)public HttpRequestDecoderSpec get()