Interface Http1Client
- 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
FieldsModifier 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 StringID of HTTP/1.1 protocol, as used for example in ALPN. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Http1ClientConfig.Builderbuilder()Create a new builder to construct an HTTP/1.1 client.static Http1Clientcreate()Create a new instance with default configuration.static Http1ClientCreate a new instance based onConfig.static Http1Clientcreate(Http1ClientConfig clientConfig) Create a new HTTP/1.1 client with custom configuration.static Http1Clientcreate(Consumer<Http1ClientConfig.Builder> consumer) Create a new HTTP/1.1 client customizing 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 Http1ClientRequestdelete()Shortcut for delete method with default path.default Http1ClientRequestShortcut for delete method with a path.default Http1ClientRequestget()Shortcut for get method with default path.default Http1ClientRequestShortcut for get method with a path.default Http1ClientRequesthead()Shortcut for head method with default path.default Http1ClientRequestShortcut for head method with a path.Create a request for a method.default Http1ClientRequestoptions()Shortcut for options method with default path.default Http1ClientRequestShortcut for options method with a path.default Http1ClientRequestpatch()Shortcut for patch method with default path.default Http1ClientRequestShortcut for patch method with a path.default Http1ClientRequestpost()Shortcut for post method with default path.default Http1ClientRequestShortcut for post method with a path.default Http1ClientRequestput()Shortcut for put method with default path.default Http1ClientRequestShortcut for put method with a path.default Http1ClientRequesttrace()Shortcut for trace method with default path.default Http1ClientRequestShortcut 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
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
Create a new instance based onConfig.- Parameters:
config- client config- Returns:
- client
-