Package io.servicetalk.http.netty
Interface H1ProtocolConfig
-
- All Superinterfaces:
HttpProtocolConfig
public interface H1ProtocolConfig extends HttpProtocolConfig
Configuration for HTTP/1.1 protocol.- See Also:
HttpProtocolConfigs.h1Default()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringalpnId()TLS Application-Layer Protocol Negotiation (ALPN) Protocol ID of the protocol this configuration is for.intheadersEncodedSizeEstimate()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.intmaxHeaderFieldLength()Maximum length of the HTTP header fields and trailer fields to parse.intmaxPipelinedRequests()Maximum number of pipelined HTTP requests to queue up.intmaxStartLineLength()Maximum length of the HTTP start line for an HTTP message.H1SpecExceptionsspecExceptions()Additional exceptions for HTTP/1.1 specification.inttrailersEncodedSizeEstimate()Value used to calculate an exponential moving average of the encoded size of the HTTP trailer fields for a guess for future buffer allocations.-
Methods inherited from interface io.servicetalk.http.api.HttpProtocolConfig
headersFactory
-
-
-
-
Method Detail
-
alpnId
default java.lang.String alpnId()
Description copied from interface:HttpProtocolConfigTLS Application-Layer Protocol Negotiation (ALPN) Protocol ID of the protocol this configuration is for.- Specified by:
alpnIdin interfaceHttpProtocolConfig- Returns:
- string representation of ALPN Identification Sequence
- See Also:
- TLS Application-Layer Protocol Negotiation (ALPN) Protocol IDs
-
maxPipelinedRequests
int maxPipelinedRequests()
Maximum number of pipelined HTTP requests to queue up.Anything above this value will be rejected,
1means pipelining is disabled and requests/responses are processed sequentially.Note:
reserved connectionswill not be restricted by this setting.- Returns:
- maximum number of pipelined HTTP requests to queue up
-
maxStartLineLength
int maxStartLineLength()
Maximum length of the HTTP start line for an HTTP message.Note: a decoder will close the connection with
TooLongFrameExceptionif the start line exceeds this value.- Returns:
- maximum size of the HTTP start line for an HTTP message
-
maxHeaderFieldLength
int maxHeaderFieldLength()
Maximum length of the HTTP header fields and trailer fields to parse.Note: a decoder will close the connection with
TooLongFrameExceptionif the length of a header or trailer field exceeds this value.- Returns:
- maximum length of HTTP header fields and trailer fields to parse
-
headersEncodedSizeEstimate
int headersEncodedSizeEstimate()
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.- Returns:
- value used to calculate an exponential moving average of the encoded size of the HTTP start line and header fields
-
trailersEncodedSizeEstimate
int trailersEncodedSizeEstimate()
Value used to calculate an exponential moving average of the encoded size of the HTTP trailer fields for a guess for future buffer allocations.- Returns:
- value used to calculate an exponential moving average of the encoded size of the HTTP trailer fields
-
specExceptions
H1SpecExceptions specExceptions()
Additional exceptions for HTTP/1.1 specification.- Returns:
- exceptions for HTTP/1.1 specification
-
-