HttpCodec (or more precisely
the settings for the decoder).
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| public static final boolean | |
| public static final int | |
| public static final int | DEFAULT_MAX_CHUNK_SIZE
Default max chunk size. |
| public static final int | |
| public static final int | |
| public static final boolean | |
| protected int | |
| protected int | |
| protected int | |
| protected int | |
| protected int | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: this option builder for further configurationtrue to allow duplicate allow)Content-Length headers with the same value, false otherwiseConfigure whether to allow duplicate |
| public boolean | Returns: the configuration whether to allow duplicateContent-Length headersReturn the configuration whether to allow duplicate |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public T | Returns: this builder for further configurationthe maximum length of the content of the upgrade request h2cMaxContentLength)Configure the maximum length of the content of the HTTP/2.0 clear-text upgrade request. |
| public int | Returns: the configured maximum length of the content of the HTTP/2.0 clear-text upgrade requestReturn the configured maximum length of the content of the HTTP/2.0 clear-text upgrade request. |
| public int | |
| public T | Returns: this option builder for further configurationthe initial buffer size to use (strictly positive) value)Configure the initial buffer size for HTTP request decoding. |
| public int | Returns: the configured initial buffer size for HTTP request decodingReturn the configured initial buffer size for HTTP request decoding. |
| public T | Returns: this option builder for further configurationthe value for the maximum chunk size (strictly positive) value)
Deprecated
as of 1.1.0. This will be removed in 2.0.0 as Netty 5 does not support this configuration.
Configure the maximum chunk size that can be decoded for the HTTP request.
|
| public int | Returns: the configured maximum chunk size that can be decoded for the HTTP request
Deprecated
as of 1.1.0. This will be removed in 2.0.0 as Netty 5 does not support this configuration.
Return the configured maximum chunk size that can be decoded for the HTTP request.
|
| public T | Returns: this option builder for further configurationthe value for the maximum header size (strictly positive) value)Configure the maximum header size that can be decoded for the HTTP request. |
| public int | Returns: the configured maximum header size that can be decoded for the HTTP requestReturn the configured maximum header size that can be decoded for the HTTP request. |
| public T | Returns: this option builder for further configurationthe value for the maximum initial line length (strictly positive) value)Configure the maximum length that can be decoded for the HTTP request's initial line. |
| public int | Returns: the configured maximum length that can be decoded for the HTTP request's initial lineReturn the configured maximum length that can be decoded for the HTTP request's initial line. |
| public T | Returns: this option builder for further configurationtrue to validate headers, false otherwise validate)Configure whether to validate headers when decoding requests. |
| public boolean | Returns: the configuration whether to validate headers when decoding requestsReturn the configuration whether to validate headers when decoding requests. |
| allowDuplicateContentLengths | back to summary |
|---|---|
| protected boolean allowDuplicateContentLengths | |
| DEFAULT_ALLOW_DUPLICATE_CONTENT_LENGTHS | back to summary |
|---|---|
| public static final boolean DEFAULT_ALLOW_DUPLICATE_CONTENT_LENGTHS | |
| DEFAULT_INITIAL_BUFFER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_INITIAL_BUFFER_SIZE | |
| DEFAULT_MAX_CHUNK_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_MAX_CHUNK_SIZE
Deprecated as of 1.1.0. This will be removed in 2.0.0 as Netty 5 does not support this configuration. Default max chunk size. | |
| DEFAULT_MAX_HEADER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_MAX_HEADER_SIZE | |
| DEFAULT_MAX_INITIAL_LINE_LENGTH | back to summary |
|---|---|
| public static final int DEFAULT_MAX_INITIAL_LINE_LENGTH | |
| DEFAULT_VALIDATE_HEADERS | back to summary |
|---|---|
| public static final boolean DEFAULT_VALIDATE_HEADERS | |
| h2cMaxContentLength | back to summary |
|---|---|
| protected int h2cMaxContentLength | |
| initialBufferSize | back to summary |
|---|---|
| protected int initialBufferSize | |
| maxChunkSize | back to summary |
|---|---|
| protected int maxChunkSize | |
| maxHeaderSize | back to summary |
|---|---|
| protected int maxHeaderSize | |
| maxInitialLineLength | back to summary |
|---|---|
| protected int maxInitialLineLength | |
| validateHeaders | back to summary |
|---|---|
| protected boolean validateHeaders | |
| HttpDecoderSpec | back to summary |
|---|---|
| public HttpDecoderSpec() | |
| allowDuplicateContentLengths | back to summary |
|---|---|
| public T allowDuplicateContentLengths(boolean allow) Configure whether to allow duplicate
| |
| allowDuplicateContentLengths | back to summary |
|---|---|
| public boolean allowDuplicateContentLengths() Return the configuration whether to allow duplicate
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| h2cMaxContentLength | back to summary |
|---|---|
| public T h2cMaxContentLength(int h2cMaxContentLength) Configure the maximum length of the content of the HTTP/2.0 clear-text upgrade request.
| |
| h2cMaxContentLength | back to summary |
|---|---|
| public int h2cMaxContentLength() Return the configured maximum length of the content of the HTTP/2.0 clear-text upgrade request.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| initialBufferSize | back to summary |
|---|---|
| public T initialBufferSize(int value) Configure the initial buffer size for HTTP request decoding. Defaults to
| |
| initialBufferSize | back to summary |
|---|---|
| public int initialBufferSize() Return the configured initial buffer size for HTTP request decoding.
| |
| maxChunkSize | back to summary |
|---|---|
| public T maxChunkSize(int value)
Deprecated as of 1.1.0. This will be removed in 2.0.0 as Netty 5 does not support this configuration. Configure the maximum chunk size that can be decoded for the HTTP request.
Defaults to
| |
| maxChunkSize | back to summary |
|---|---|
| public int maxChunkSize()
Deprecated as of 1.1.0. This will be removed in 2.0.0 as Netty 5 does not support this configuration. Return the configured maximum chunk size that can be decoded for the HTTP request.
| |
| maxHeaderSize | back to summary |
|---|---|
| public T maxHeaderSize(int value) Configure the maximum header size that can be decoded for the HTTP request.
Defaults to
| |
| maxHeaderSize | back to summary |
|---|---|
| public int maxHeaderSize() Return the configured maximum header size that can be decoded for the HTTP request.
| |
| maxInitialLineLength | back to summary |
|---|---|
| public T maxInitialLineLength(int value) Configure the maximum length that can be decoded for the HTTP request's initial
line. Defaults to
| |
| maxInitialLineLength | back to summary |
|---|---|
| public int maxInitialLineLength() Return the configured maximum length that can be decoded for the HTTP request's initial line.
| |
| validateHeaders | back to summary |
|---|---|
| public T validateHeaders(boolean validate) Configure whether to validate headers when decoding requests. Defaults to
| |
| validateHeaders | back to summary |
|---|---|
| public boolean validateHeaders() Return the configuration whether to validate headers when decoding requests.
| |