public final class H1ProtocolConfigBuilder
extends java.lang.Object
H1ProtocolConfig.HttpProtocolConfigs.h1()| Modifier and Type | Method and Description |
|---|---|
H1ProtocolConfig |
build()
Builds
H1ProtocolConfig. |
H1ProtocolConfigBuilder |
headersEncodedSizeEstimate(int headersEncodedSizeEstimate)
Sets the value used to calculate an exponential moving average of the encoded size of the HTTP
start line and
header fields for a guess for future buffer
allocations.
|
H1ProtocolConfigBuilder |
headersFactory(HttpHeadersFactory headersFactory)
Sets the
HttpHeadersFactory to be used for creating HttpHeaders when decoding HTTP messages. |
H1ProtocolConfigBuilder |
maxHeaderFieldLength(int maxHeaderFieldLength)
Sets the maximum length of the HTTP header fields
and trailer fields to parse.
|
H1ProtocolConfigBuilder |
maxPipelinedRequests(int maxPipelinedRequests)
Sets the maximum number of pipelined HTTP requests to queue up.
|
H1ProtocolConfigBuilder |
maxStartLineLength(int maxStartLineLength)
Sets the maximum length of the HTTP start line for
an HTTP message.
|
H1ProtocolConfigBuilder |
trailersEncodedSizeEstimate(int trailersEncodedSizeEstimate)
Sets the value used to calculate an exponential moving average of the encoded size of the HTTP
trailer fields for a guess for future
buffer allocations.
|
public H1ProtocolConfigBuilder headersFactory(HttpHeadersFactory headersFactory)
HttpHeadersFactory to be used for creating HttpHeaders when decoding HTTP messages.headersFactory - HttpHeadersFactory to be used for creating HttpHeaders when decoding HTTP
messagesthispublic H1ProtocolConfigBuilder maxPipelinedRequests(int maxPipelinedRequests)
Anything above this value will be rejected, 1 means pipelining is disabled and requests/responses are
processed sequentially.
Note: reserved connections will not be restricted by this setting.
maxPipelinedRequests - maximum number of pipelined requests to queue upthispublic H1ProtocolConfigBuilder maxStartLineLength(int maxStartLineLength)
Note: a decoder will close the connection with TooLongFrameException if the start line exceeds
this value.
maxStartLineLength - maximum size of the HTTP
start line for an HTTP messagethispublic H1ProtocolConfigBuilder maxHeaderFieldLength(int maxHeaderFieldLength)
Note: a decoder will close the connection with TooLongFrameException if the length of a header or
trailer field exceeds this value.
maxHeaderFieldLength - maximum length of HTTP
header fields and
trailer fields to parsethispublic H1ProtocolConfigBuilder headersEncodedSizeEstimate(int headersEncodedSizeEstimate)
headersEncodedSizeEstimate - value used to calculate an exponential moving average of the encoded size of
the HTTP start line and
header fieldsthispublic H1ProtocolConfigBuilder trailersEncodedSizeEstimate(int trailersEncodedSizeEstimate)
trailersEncodedSizeEstimate - value used to calculate an exponential moving average of the encoded size of
the HTTP trailer fieldsthispublic H1ProtocolConfig build()
H1ProtocolConfig.H1ProtocolConfig