- All Superinterfaces:
HttpClient<Http2ClientRequest>
,ReleasableResource
,RuntimeType.Api<Http2ClientConfig>
- All Known Implementing Classes:
Http2ClientImpl
public interface Http2Client
extends HttpClient<Http2ClientRequest>, RuntimeType.Api<Http2ClientConfig>
HTTP2 client.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Protocol
<Http2Client, Http2ClientProtocolConfig> Protocol to use to obtain an instance of http/2 specific client fromWebClient.client(io.helidon.webclient.spi.Protocol)
.static final String
HTTP/2 protocol ID, as used by ALPN. -
Method Summary
Modifier and TypeMethodDescriptionstatic Http2ClientConfig.Builder
builder()
A new fluent API builder to customize client setup.static Http2Client
create()
Create a new instance with default configuration.static Http2Client
Create a new instance based onConfig
.static Http2Client
create
(Http2ClientConfig clientConfig) Create a new instance with custom configuration.static Http2Client
create
(Consumer<Http2ClientConfig.Builder> consumer) Create a new instance customizing its 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
HTTP/2 protocol ID, as used by ALPN.- See Also:
-
PROTOCOL
Protocol to use to obtain an instance of http/2 specific client fromWebClient.client(io.helidon.webclient.spi.Protocol)
.
-
-
Method Details
-
builder
A new fluent API builder to customize client setup.- Returns:
- a new builder
-
create
Create a new instance with custom configuration.- Parameters:
clientConfig
- HTTP/2 client configuration- Returns:
- a new HTTP/2 client
-
create
Create a new instance customizing its configuration.- Parameters:
consumer
- HTTP/2 client configuration- Returns:
- a new HTTP/2 client
-
create
Create a new instance with default configuration.- Returns:
- a new HTTP/2 client
-
create
Create a new instance based onConfig
.- Parameters:
config
- client config- Returns:
- a new HTTP/2 client
-