Interface Http2Client
- 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
FieldsModifier 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 StringHTTP/2 protocol ID, as used by ALPN. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Http2ClientConfig.Builderbuilder()A new fluent API builder to customize client setup.static Http2Clientcreate()Create a new instance with default configuration.static Http2ClientCreate a new instance based onConfig.static Http2Clientcreate(Http2ClientConfig clientConfig) Create a new instance with custom configuration.static Http2Clientcreate(Consumer<Http2ClientConfig.Builder> consumer) Create a new instance customizing its configuration.Methods inherited from interface HttpClient
closeResource, delete, delete, get, get, head, head, method, options, options, patch, patch, post, post, put, put, trace, traceModifier and TypeMethodDescriptiondefault voidGracefully close all opened client specific connections.default Http2ClientRequestdelete()Shortcut for delete method with default path.default Http2ClientRequestShortcut for delete method with a path.default Http2ClientRequestget()Shortcut for get method with default path.default Http2ClientRequestShortcut for get method with a path.default Http2ClientRequesthead()Shortcut for head method with default path.default Http2ClientRequestShortcut for head method with a path.Create a request for a method.default Http2ClientRequestoptions()Shortcut for options method with default path.default Http2ClientRequestShortcut for options method with a path.default Http2ClientRequestpatch()Shortcut for patch method with default path.default Http2ClientRequestShortcut for patch method with a path.default Http2ClientRequestpost()Shortcut for post method with default path.default Http2ClientRequestShortcut for post method with a path.default Http2ClientRequestput()Shortcut for put method with default path.default Http2ClientRequestShortcut for put method with a path.default Http2ClientRequesttrace()Shortcut for trace method with default path.default Http2ClientRequestShortcut for trace method with a path.Methods inherited from interface ReleasableResource
releaseResourceModifier and TypeMethodDescriptiondefault voidReleases the resource, and if this resource is re-usable, enabled reuse.Methods inherited from interface RuntimeType.Api
prototypeModifier and TypeMethodDescriptionThe prototype as it was received when creating this runtime object instance.
-
Field Details
-
PROTOCOL_ID
-
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
-