Module io.helidon.webclient.http1
Package io.helidon.webclient.http1
Interface Http1ClientProtocolConfig
- All Superinterfaces:
NamedService
,ProtocolConfig
,Prototype.Api
- All Known Implementing Classes:
Http1ClientProtocolConfig.BuilderBase.Http1ClientProtocolConfigImpl
Configuration of an HTTP/1.1 client.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forHttp1ClientProtocolConfig
.static class
Http1ClientProtocolConfig.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 Http1ClientProtocolConfig
create()
Create a new instance with default values.static Http1ClientProtocolConfig
Create a new instance from configuration.boolean
Whether to use keep alive by default.int
Configure the maximum allowed header size of the response.int
Configure the maximum allowed length of the status line from the response.name()
Name of this implementation, as provided inConfiguredProvider.create(Config, String)
.default String
type()
Type of this implementation, to distinguish instances of same type, with differentNamedService.name()
.boolean
Sets whether the request header format is validated or not.boolean
Sets whether the response header format is validated or not.
-
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:NamedService
Type of this implementation, to distinguish instances of same type, with differentNamedService.name()
. Use for exampleConfiguredProvider.configKey()
to define the type.- Specified by:
type
in interfaceNamedService
- Returns:
- type of this service
-
name
String name()Description copied from interface:NamedService
Name of this implementation, as provided inConfiguredProvider.create(Config, String)
.- Specified by:
name
in interfaceNamedService
- Returns:
- name of this service
-
defaultKeepAlive
boolean defaultKeepAlive()Whether to use keep alive by default.- Returns:
true
for keeping connections alive and re-using them for multiple requests (default),false
to create a new connection for each request
-
maxHeaderSize
int maxHeaderSize()Configure the maximum allowed header size of the response.- Returns:
- maximum header size
-
maxStatusLineLength
int maxStatusLineLength()Configure the maximum allowed length of the status line from the response.- Returns:
- maximum status line length
-
validateRequestHeaders
boolean validateRequestHeaders()Sets whether the request header format is validated or not.Defaults to
false
as user has control on the header creation.- Returns:
- whether request header validation should be enabled
-
validateResponseHeaders
boolean validateResponseHeaders()Sets whether the response header format is validated or not.Defaults to
true
.- Returns:
- whether response header validation should be enabled
-