public final class HttpResponseDecoderSpec extends HttpDecoderSpec<HttpResponseDecoderSpec>
HttpClientCodec
(or more precisely the HttpClientCodec.Decoder
).
Defaults are accessible as constants:
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_FAIL_ON_MISSING_RESPONSE |
static int |
DEFAULT_H2C_MAX_CONTENT_LENGTH
The maximum length of the content of the HTTP/2.0 clear-text upgrade request.
|
static boolean |
DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST |
allowDuplicateContentLengths, DEFAULT_ALLOW_DUPLICATE_CONTENT_LENGTHS, DEFAULT_INITIAL_BUFFER_SIZE, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_HEADER_SIZE, DEFAULT_MAX_INITIAL_LINE_LENGTH, DEFAULT_VALIDATE_HEADERS, h2cMaxContentLength, initialBufferSize, maxChunkSize, maxHeaderSize, maxInitialLineLength, validateHeaders
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
HttpResponseDecoderSpec |
failOnMissingResponse(boolean failOnMissingResponse)
Configure whether to throw an exception on a channel inactive
in case there was a missing response.
|
HttpResponseDecoderSpec |
get() |
int |
hashCode() |
HttpResponseDecoderSpec |
parseHttpAfterConnectRequest(boolean parseHttpAfterConnectRequest)
Configure whether the HTTP decoding will continue even after HTTP CONNECT.
|
allowDuplicateContentLengths, allowDuplicateContentLengths, h2cMaxContentLength, h2cMaxContentLength, initialBufferSize, initialBufferSize, maxChunkSize, maxChunkSize, maxHeaderSize, maxHeaderSize, maxInitialLineLength, maxInitialLineLength, validateHeaders, validateHeaders
public static final boolean DEFAULT_FAIL_ON_MISSING_RESPONSE
public static final boolean DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST
public static final int DEFAULT_H2C_MAX_CONTENT_LENGTH
public HttpResponseDecoderSpec get()
public HttpResponseDecoderSpec failOnMissingResponse(boolean failOnMissingResponse)
failOnMissingResponse
- true - throw an exception on a channel inactive
in case there was a missing response, otherwise falsepublic HttpResponseDecoderSpec parseHttpAfterConnectRequest(boolean parseHttpAfterConnectRequest)
parseHttpAfterConnectRequest
- true to continue HTTP decoding, otherwise falsepublic boolean equals(Object o)
equals
in class HttpDecoderSpec<HttpResponseDecoderSpec>
public int hashCode()
hashCode
in class HttpDecoderSpec<HttpResponseDecoderSpec>