Top Description Fields Constructors Methods
reactor.netty.http.client

public final Class HttpResponseDecoderSpec

extends HttpDecoderSpec<HttpResponseDecoderSpec>
Class Inheritance
Imports
reactor.netty.http.HttpDecoderSpec, reactor.netty.http.server.HttpRequestDecoderSpec

A configuration builder to fine tune the io.netty.handler.codec.http.HttpClientCodec (or more precisely the io.netty.handler.codec.http.HttpClientCodec.Decoder).

Defaults are accessible as constants:

DEFAULT_ALLOW_DUPLICATE_CONTENT_LENGTHSfalse
DEFAULT_FAIL_ON_MISSING_RESPONSEfalse
DEFAULT_H2C_MAX_CONTENT_LENGTH65536
DEFAULT_INITIAL_BUFFER_SIZE128
DEFAULT_MAX_CHUNK_SIZE8192
DEFAULT_MAX_HEADER_SIZE8192
DEFAULT_MAX_INITIAL_LINE_LENGTH4096
DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUESTfalse
DEFAULT_VALIDATE_HEADERStrue
Author
Violeta Georgieva

Field Summary

Modifier and TypeField and Description
public static final boolean
public static final int
DEFAULT_H2C_MAX_CONTENT_LENGTH

The maximum length of the content of the HTTP/2.0 clear-text upgrade request.

public static final boolean
pack-priv boolean
pack-priv boolean
Inherited from reactor.netty.http.HttpDecoderSpec:
allowDuplicateContentLengthsDEFAULT_ALLOW_DUPLICATE_CONTENT_LENGTHSDEFAULT_INITIAL_BUFFER_SIZEDEFAULT_MAX_CHUNK_SIZEDEFAULT_MAX_HEADER_SIZEDEFAULT_MAX_INITIAL_LINE_LENGTHDEFAULT_VALIDATE_HEADERSh2cMaxContentLengthinitialBufferSizemaxChunkSizemaxHeaderSizemaxInitialLineLengthvalidateHeaders

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv HttpResponseDecoderSpec
public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides reactor.netty.http.HttpDecoderSpec.equals.

Indicates whether some other object is "equal to" this one.
public HttpResponseDecoderSpec

Returns:

this option builder for further configuration
failOnMissingResponse
(boolean
true - throw an exception on a channel inactive in case there was a missing response, otherwise false
failOnMissingResponse
)

Configure whether to throw an exception on a channel inactive in case there was a missing response.

public HttpResponseDecoderSpec
get()

Implements java.util.function.Supplier.get.

Gets a result.
public int
hashCode()

Overrides reactor.netty.http.HttpDecoderSpec.hashCode.

Returns a hash code value for the object.
public HttpResponseDecoderSpec

Returns:

this option builder for further configuration
parseHttpAfterConnectRequest
(boolean
true to continue HTTP decoding, otherwise false
parseHttpAfterConnectRequest
)

Configure whether the HTTP decoding will continue even after HTTP CONNECT.

Inherited from reactor.netty.http.HttpDecoderSpec:
allowDuplicateContentLengthsallowDuplicateContentLengthsh2cMaxContentLengthh2cMaxContentLengthinitialBufferSizeinitialBufferSizemaxChunkSizemaxChunkSizemaxHeaderSizemaxHeaderSizemaxInitialLineLengthmaxInitialLineLengthvalidateHeadersvalidateHeaders

Field Detail

DEFAULT_FAIL_ON_MISSING_RESPONSEback to summary
public static final boolean DEFAULT_FAIL_ON_MISSING_RESPONSE
DEFAULT_H2C_MAX_CONTENT_LENGTHback to summary
public static final int DEFAULT_H2C_MAX_CONTENT_LENGTH

The 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.

DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUESTback to summary
public static final boolean DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST
failOnMissingResponseback to summary
pack-priv boolean failOnMissingResponse
parseHttpAfterConnectRequestback to summary
pack-priv boolean parseHttpAfterConnectRequest

Constructor Detail

HttpResponseDecoderSpecback to summary
pack-priv HttpResponseDecoderSpec()

Method Detail

buildback to summary
pack-priv HttpResponseDecoderSpec build()

Build a HttpRequestDecoderSpec.

equalsback to summary
public boolean equals(Object o)

Overrides reactor.netty.http.HttpDecoderSpec.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

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.

Parameters
o:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
failOnMissingResponseback to summary
public HttpResponseDecoderSpec failOnMissingResponse(boolean failOnMissingResponse)

Configure whether to throw an exception on a channel inactive in case there was a missing response.

Parameters
failOnMissingResponse:boolean

true - throw an exception on a channel inactive in case there was a missing response, otherwise false

Returns:HttpResponseDecoderSpec

this option builder for further configuration

getback to summary
public HttpResponseDecoderSpec get()

Implements java.util.function.Supplier.get.

Doc from java.util.function.Supplier.get.

Gets a result.

Returns:HttpResponseDecoderSpec

a result

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides reactor.netty.http.HttpDecoderSpec.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object.

Annotations
@Override
parseHttpAfterConnectRequestback to summary
public HttpResponseDecoderSpec parseHttpAfterConnectRequest(boolean parseHttpAfterConnectRequest)

Configure whether the HTTP decoding will continue even after HTTP CONNECT.

Parameters
parseHttpAfterConnectRequest:boolean

true to continue HTTP decoding, otherwise false

Returns:HttpResponseDecoderSpec

this option builder for further configuration