- All Superinterfaces:
HttpClient<Http2ClientRequest>
,ReleasableResource
,RuntimeType.Api<Http2ClientConfig>
public interface Http2Client
extends HttpClient<Http2ClientRequest>, RuntimeType.Api<Http2ClientConfig>
HTTP2 client.
-
Field Summary
-
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:
-
-
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
-