Interface Http1ClientProtocolConfig
- All Superinterfaces:
HttpConfig, NamedService, ProtocolConfig, Prototype.Api
- All Known Implementing Classes:
Http1ClientProtocolConfig.BuilderBase.Http1ClientProtocolConfigImpl
Configuration of an HTTP/1.1 client.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forHttp1ClientProtocolConfig.static classHttp1ClientProtocolConfig.BuilderBase<BUILDER extends Http1ClientProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends Http1ClientProtocolConfig>Fluent API builder base forHttp1ClientProtocolConfig. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder to customize configuration.builder(Http1ClientProtocolConfig instance) Create a new fluent API builder from an existing instance.static Http1ClientProtocolConfigcreate()Create a new instance with default values.static Http1ClientProtocolConfigCreate a new instance from configuration.booleanWhether to use keep alive by default.intDeprecated.intConfigure the maximum allowed length of the status line from the response.name()Name of this protocol configuration.default Stringtype()Type of this implementation, to distinguish instances of same type, with differentNamedService.name().Methods inherited from interface HttpConfig
log, maxBufferedEntitySize, maxHeadersSize, validateRequestHeaders, validateResponseHeadersModifier and TypeMethodDescriptiondefault HttpLogConfiglog()HTTP Log configuration.default SizeConfigure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().default intConfigure the maximum allowed headers size, which must be greater than0.default booleanWhether to validate request headers.default booleanWhether to validate response headers.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
type
Description copied from interface:NamedServiceType of this implementation, to distinguish instances of same type, with differentNamedService.name(). Use for exampleConfiguredProvider.configKey()to define the type.- Specified by:
typein interfaceNamedService- Returns:
- type of this service
-
name
String name()Name of this protocol configuration.- Specified by:
namein interfaceNamedService- Returns:
- protocol configuration name
-
defaultKeepAlive
boolean defaultKeepAlive()Whether to use keep alive by default.- Returns:
truefor keeping connections alive and re-using them for multiple requests (default),falseto create a new connection for each request
-
maxHeaderSize
Deprecated.This option is deprecated, useHttpConfig.maxHeadersSize()insteadConfigure the maximum allowed headers size of the response, which must be greater than0.If both
max-header-sizeandmax-headers-sizeare configured, the deprecatedmax-header-sizekey takes precedence for backward compatibility.- Returns:
- maximum headers size
-
maxStatusLineLength
int maxStatusLineLength()Configure the maximum allowed length of the status line from the response.- Returns:
- maximum status line length
-
HttpConfig.maxHeadersSize()instead