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

public final Class HttpRequestDecoderSpec

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

A configuration builder to fine tune the io.netty.handler.codec.http.HttpServerCodec (or more precisely the io.netty.handler.codec.http.HttpServerCodec.HttpServerRequestDecoder) for HTTP/1.1 or io.netty.handler.codec.http.HttpServerUpgradeHandler for H2C.

Defaults are accessible as constants

DEFAULT_ALLOW_DUPLICATE_CONTENT_LENGTHSfalse
DEFAULT_H2C_MAX_CONTENT_LENGTH0
DEFAULT_INITIAL_BUFFER_SIZE128
DEFAULT_MAX_CHUNK_SIZE8192
DEFAULT_MAX_HEADER_SIZE8192
DEFAULT_MAX_INITIAL_LINE_LENGTH4096
DEFAULT_VALIDATE_HEADERStrue
Authors
Simon Baslé, Violeta Georgieva

Field Summary

Modifier and TypeField and Description
public static final int
DEFAULT_H2C_MAX_CONTENT_LENGTH

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

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 HttpRequestDecoderSpec
public HttpRequestDecoderSpec
get()

Implements java.util.function.Supplier.get.

Gets a result.
Inherited from reactor.netty.http.HttpDecoderSpec:
allowDuplicateContentLengthsallowDuplicateContentLengthsequalsh2cMaxContentLengthh2cMaxContentLengthhashCodeinitialBufferSizeinitialBufferSizemaxChunkSizemaxChunkSizemaxHeaderSizemaxHeaderSizemaxInitialLineLengthmaxInitialLineLengthvalidateHeadersvalidateHeaders

Field Detail

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 server will reject an upgrade request with non-empty content, because the upgrade request is most likely a GET request.

Constructor Detail

HttpRequestDecoderSpecback to summary
pack-priv HttpRequestDecoderSpec()

Method Detail

buildback to summary
pack-priv HttpRequestDecoderSpec build()

Build a HttpRequestDecoderSpec.

getback to summary
public HttpRequestDecoderSpec get()

Implements java.util.function.Supplier.get.

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

Gets a result.

Returns:HttpRequestDecoderSpec

a result

Annotations
@Override