public final class HttpRequestDecoderSpec extends HttpDecoderSpec<HttpRequestDecoderSpec>
HttpServerCodec
(or more precisely the HttpServerCodec.HttpServerRequestDecoder
) for HTTP/1.1
or HttpServerUpgradeHandler
for H2C.
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
, HttpDecoderSpec.DEFAULT_VALIDATE_HEADERS
and
DEFAULT_H2C_MAX_CONTENT_LENGTH
.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_H2C_MAX_CONTENT_LENGTH
The maximum length of the content of the H2C upgrade request.
|
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 |
h2cMaxContentLength(int h2cMaxContentLength)
Configure the maximum length of the content of the H2C upgrade request.
|
initialBufferSize, initialBufferSize, maxChunkSize, maxChunkSize, maxHeaderSize, maxHeaderSize, maxInitialLineLength, maxInitialLineLength, validateHeaders, validateHeaders
public static final int DEFAULT_H2C_MAX_CONTENT_LENGTH
public HttpRequestDecoderSpec get()
public HttpRequestDecoderSpec h2cMaxContentLength(int h2cMaxContentLength)
h2cMaxContentLength
specifies the maximum
length of the content of the upgrade request.h2cMaxContentLength
- the maximum length of the content of the upgrade request