Module io.helidon.webclient.api
Package io.helidon.webclient.api
Interface HttpClient<REQ extends ClientRequest<REQ>>
- Type Parameters:
REQ
- type of the client request
- All Superinterfaces:
ReleasableResource
- All Known Subinterfaces:
Http1Client
,Http2Client
,WebClient
- All Known Implementing Classes:
DirectClient
,DirectWebClient
,Http2ClientImpl
HTTP client.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Gracefully close all opened client specific connections.default REQ
delete()
Shortcut for delete method with default path.default REQ
Shortcut for delete method with a path.default REQ
get()
Shortcut for get method with default path.default REQ
Shortcut for get method with a path.default REQ
head()
Shortcut for head method with default path.default REQ
Shortcut for head method with a path.Create a request for a method.default REQ
options()
Shortcut for options method with default path.default REQ
Shortcut for options method with a path.default REQ
patch()
Shortcut for patch method with default path.default REQ
Shortcut for patch method with a path.default REQ
post()
Shortcut for post method with default path.default REQ
Shortcut for post method with a path.default REQ
put()
Shortcut for put method with default path.default REQ
Shortcut for put method with a path.default REQ
trace()
Shortcut for trace method with default path.default REQ
Shortcut for trace method with a path.Methods inherited from interface io.helidon.webclient.api.ReleasableResource
releaseResource
-
Method Details
-
method
Create a request for a method.- Parameters:
method
- HTTP method- Returns:
- a new request (not thread safe)
-
closeResource
default void closeResource()Gracefully close all opened client specific connections.- Specified by:
closeResource
in interfaceReleasableResource
-
get
Shortcut for get method with a path.- Parameters:
uri
- path to resolve against base URI, or full URI- Returns:
- a new request (not thread safe)
-
get
Shortcut for get method with default path.- Returns:
- a new request (not thread safe)
-
post
Shortcut for post method with a path.- Parameters:
uri
- path to resolve against base URI, or full URI- Returns:
- a new request (not thread safe)
-
post
Shortcut for post method with default path.- Returns:
- a new request (not thread safe)
-
put
Shortcut for put method with a path.- Parameters:
uri
- path to resolve against base URI, or full URI- Returns:
- a new request (not thread safe)
-
put
Shortcut for put method with default path.- Returns:
- a new request (not thread safe)
-
delete
Shortcut for delete method with a path.- Parameters:
uri
- path to resolve against base URI, or full URI- Returns:
- a new request (not thread safe)
-
delete
Shortcut for delete method with default path.- Returns:
- a new request (not thread safe)
-
head
Shortcut for head method with a path.- Parameters:
uri
- path to resolve against base URI, or full URI- Returns:
- a new request (not thread safe)
-
head
Shortcut for head method with default path.- Returns:
- a new request (not thread safe)
-
options
Shortcut for options method with a path.- Parameters:
uri
- path to resolve against base URI, or full URI- Returns:
- a new request (not thread safe)
-
options
Shortcut for options method with default path.- Returns:
- a new request (not thread safe)
-
trace
Shortcut for trace method with a path.- Parameters:
uri
- path to resolve against base URI, or full URI- Returns:
- a new request (not thread safe)
-
trace
Shortcut for trace method with default path.- Returns:
- a new request (not thread safe)
-
patch
Shortcut for patch method with a path.- Parameters:
uri
- path to resolve against base URI, or full URI- Returns:
- a new request (not thread safe)
-
patch
Shortcut for patch method with default path.- Returns:
- a new request (not thread safe)
-