Package reactor.netty.http.client
Class HttpResponseDecoderSpec
java.lang.Object
reactor.netty.http.HttpDecoderSpec<HttpResponseDecoderSpec>
reactor.netty.http.client.HttpResponseDecoderSpec
- All Implemented Interfaces:
Supplier<HttpResponseDecoderSpec>
A configuration builder to fine tune the
HttpClientCodec
(or more precisely the HttpClientCodec.Decoder
).
Defaults are accessible as constants:
- Author:
- Violeta Georgieva
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
static final int
The maximum length of the content of the HTTP/2.0 clear-text upgrade request.static final boolean
Fields inherited from class reactor.netty.http.HttpDecoderSpec
allowDuplicateContentLengths, allowPartialChunks, DEFAULT_ALLOW_DUPLICATE_CONTENT_LENGTHS, DEFAULT_ALLOW_PARTIAL_CHUNKS, 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
failOnMissingResponse
(boolean failOnMissingResponse) Configure whether to throw an exception on a channel inactive in case there was a missing response.get()
int
hashCode()
parseHttpAfterConnectRequest
(boolean parseHttpAfterConnectRequest) Configure whether the HTTP decoding will continue even after HTTP CONNECT.Methods inherited from class reactor.netty.http.HttpDecoderSpec
allowDuplicateContentLengths, allowDuplicateContentLengths, allowPartialChunks, allowPartialChunks, h2cMaxContentLength, h2cMaxContentLength, initialBufferSize, initialBufferSize, maxChunkSize, maxChunkSize, maxHeaderSize, maxHeaderSize, maxInitialLineLength, maxInitialLineLength, validateHeaders, validateHeaders
-
Field Details
-
DEFAULT_FAIL_ON_MISSING_RESPONSE
public static final boolean DEFAULT_FAIL_ON_MISSING_RESPONSE- See Also:
-
DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST
public static final boolean DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST- See Also:
-
DEFAULT_H2C_MAX_CONTENT_LENGTH
public static final int DEFAULT_H2C_MAX_CONTENT_LENGTHThe maximum length of the content of the HTTP/2.0 clear-text upgrade request. By default, the client will allow an upgrade request with up to 65536 as the maximum length of the aggregated content.- See Also:
-
-
Method Details
-
get
-
failOnMissingResponse
Configure whether to throw an exception on a channel inactive in case there was a missing response.- Parameters:
failOnMissingResponse
- true - throw an exception on a channel inactive in case there was a missing response, otherwise false- Returns:
- this option builder for further configuration
-
parseHttpAfterConnectRequest
Configure whether the HTTP decoding will continue even after HTTP CONNECT.- Parameters:
parseHttpAfterConnectRequest
- true to continue HTTP decoding, otherwise false- Returns:
- this option builder for further configuration
-
equals
- Overrides:
equals
in classHttpDecoderSpec<HttpResponseDecoderSpec>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classHttpDecoderSpec<HttpResponseDecoderSpec>
-