public final class HttpResponseDecoderSpec extends HttpDecoderSpec<HttpResponseDecoderSpec>
HttpClientCodec
(or more precisely the HttpClientCodec.Decoder).
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,
DEFAULT_FAIL_ON_MISSING_RESPONSE and DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST.
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_FAIL_ON_MISSING_RESPONSE |
static boolean |
DEFAULT_PARSE_HTTP_AFTER_CONNECT_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 |
|---|
HttpResponseDecoderSpec() |
| Modifier and Type | Method and Description |
|---|---|
HttpResponseDecoderSpec |
failOnMissingResponse(boolean failOnMissingResponse)
Configure whether or not to throw an exception on a channel inactive
in case there was a missing response
|
HttpResponseDecoderSpec |
get() |
HttpResponseDecoderSpec |
parseHttpAfterConnectRequest(boolean parseHttpAfterConnectRequest)
Configure whether or not the HTTP decoding will continue even after HTTP CONNECT.
|
initialBufferSize, initialBufferSize, maxChunkSize, maxChunkSize, maxHeaderSize, maxHeaderSize, maxInitialLineLength, maxInitialLineLength, validateHeaders, validateHeaderspublic static final boolean DEFAULT_FAIL_ON_MISSING_RESPONSE
public static final boolean DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST
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 false