- All Superinterfaces:
Prototype.Api
- All Known Subinterfaces:
GrpcClientConfig
,io.helidon.webclient.grpc.GrpcClientConfigBlueprint
,Http1ClientConfig
,io.helidon.webclient.http1.Http1ClientConfigBlueprint
,Http2ClientConfig
,io.helidon.webclient.http2.Http2ClientConfigBlueprint
,HttpClientConfig
,WebClientConfig
,WsClientConfig
,io.helidon.webclient.websocket.WsClientConfigBlueprint
- All Known Implementing Classes:
GrpcClientConfig.BuilderBase.GrpcClientConfigImpl
,Http1ClientConfig.BuilderBase.Http1ClientConfigImpl
,Http2ClientConfig.BuilderBase.Http2ClientConfigImpl
,HttpClientConfig.BuilderBase.HttpClientConfigImpl
,HttpConfigBase.BuilderBase.HttpConfigBaseImpl
,WebClientConfig.BuilderBase.WebClientConfigImpl
,WsClientConfig.BuilderBase.WsClientConfigImpl
Common configuration for HTTP protocols.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forHttpConfigBase
.static class
HttpConfigBase.BuilderBase<BUILDER extends HttpConfigBase.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends HttpConfigBase> Fluent API builder base forHttpConfigBase
. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpConfigBase.Builder
builder()
Create a new fluent API builder to customize configuration.static HttpConfigBase.Builder
builder
(HttpConfigBase instance) Create a new fluent API builder from an existing instance.Connect timeout.static HttpConfigBase
Create a new instance from configuration.boolean
Whether to follow redirects.boolean
Determines if connection keep alive is enabled (NOT socket keep alive, but HTTP connection keep alive, to re-use the same connection for multiple requests).int
Max number of followed redirects.Properties configured for this client.proxy()
Proxy configuration to be used for requests.Read timeout.tls()
TLS configuration for any TLS request from this client.
-
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
-
followRedirects
boolean followRedirects()Whether to follow redirects.- Returns:
- whether to follow redirects
-
maxRedirects
int maxRedirects()Max number of followed redirects. This is ignored iffollowRedirects()
option isfalse
.- Returns:
- max number of followed redirects
-
tls
Tls tls()TLS configuration for any TLS request from this client. TLS can also be configured per request. TLS is used when the protocol is set tohttps
.- Returns:
- TLS configuration to use
-
readTimeout
Read timeout.- Returns:
- read timeout
- See Also:
-
connectTimeout
Connect timeout.- Returns:
- connect timeout
- See Also:
-
keepAlive
boolean keepAlive()Determines if connection keep alive is enabled (NOT socket keep alive, but HTTP connection keep alive, to re-use the same connection for multiple requests).- Returns:
- keep alive for this connection
- See Also:
-
proxy
Proxy proxy()Proxy configuration to be used for requests.- Returns:
- proxy to use, defaults to
Proxy.noProxy()
-
properties
Properties configured for this client. These properties are propagated through client request, to be used by services (and possibly for other purposes).- Returns:
- map of client properties
-