- All Superinterfaces:
HttpClient<Http1ClientRequest>
,ReleasableResource
,RuntimeType.Api<Http1ClientConfig>
- All Known Implementing Classes:
DirectClient
public interface Http1Client
extends HttpClient<Http1ClientRequest>, RuntimeType.Api<Http1ClientConfig>
HTTP/1.1 client.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Protocol
<Http1Client, Http1ClientProtocolConfig> HTTP/1.1 protocol to use to obtain an instance of HTTP/1.1 specific client fromWebClient.client(io.helidon.webclient.spi.Protocol)
.static final String
ID of HTTP/1.1 protocol, as used for example in ALPN. -
Method Summary
Modifier and TypeMethodDescriptionstatic Http1ClientConfig.Builder
builder()
Create a new builder to construct an HTTP/1.1 client.static Http1Client
create()
Create a new instance with default configuration.static Http1Client
Create a new instance based onConfig
.static Http1Client
create
(Http1ClientConfig clientConfig) Create a new HTTP/1.1 client with custom configuration.static Http1Client
create
(Consumer<Http1ClientConfig.Builder> consumer) Create a new HTTP/1.1 client customizing configuration.Methods inherited from interface io.helidon.webclient.api.HttpClient
closeResource, delete, delete, get, get, head, head, method, options, options, patch, patch, post, post, put, put, trace, trace
Methods inherited from interface io.helidon.webclient.api.ReleasableResource
releaseResource
Methods inherited from interface io.helidon.builder.api.RuntimeType.Api
prototype
-
Field Details
-
PROTOCOL_ID
ID of HTTP/1.1 protocol, as used for example in ALPN.- See Also:
-
PROTOCOL
HTTP/1.1 protocol to use to obtain an instance of HTTP/1.1 specific client fromWebClient.client(io.helidon.webclient.spi.Protocol)
.
-
-
Method Details
-
builder
Create a new builder to construct an HTTP/1.1 client.- Returns:
- fluent API builder
-
create
Create a new HTTP/1.1 client with custom configuration.- Parameters:
clientConfig
- client configuration- Returns:
- a new client
-
create
Create a new HTTP/1.1 client customizing configuration.- Parameters:
consumer
- client configuration- Returns:
- a new client
-
create
Create a new instance with default configuration.- Returns:
- client
-
create
Create a new instance based onConfig
.- Parameters:
config
- client config- Returns:
- client
-