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 voidGracefully close all opened client specific connections.default REQdelete()Shortcut for delete method with default path.default REQShortcut for delete method with a path.default REQget()Shortcut for get method with default path.default REQShortcut for get method with a path.default REQhead()Shortcut for head method with default path.default REQShortcut for head method with a path.Create a request for a method.default REQoptions()Shortcut for options method with default path.default REQShortcut for options method with a path.default REQpatch()Shortcut for patch method with default path.default REQShortcut for patch method with a path.default REQpost()Shortcut for post method with default path.default REQShortcut for post method with a path.default REQput()Shortcut for put method with default path.default REQShortcut for put method with a path.default REQtrace()Shortcut for trace method with default path.default REQShortcut 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.
-
Method Details
-
method
-
closeResource
default void closeResource()Gracefully close all opened client specific connections.- Specified by:
closeResourcein interfaceReleasableResource
-
get
-
get
Shortcut for get method with default path.- Returns:
- a new request (not thread safe)
-
post
-
post
Shortcut for post method with default path.- Returns:
- a new request (not thread safe)
-
put
-
put
Shortcut for put method with default path.- Returns:
- a new request (not thread safe)
-
delete
-
delete
Shortcut for delete method with default path.- Returns:
- a new request (not thread safe)
-
head
-
head
Shortcut for head method with default path.- Returns:
- a new request (not thread safe)
-
options
-
options
Shortcut for options method with default path.- Returns:
- a new request (not thread safe)
-
trace
-
trace
Shortcut for trace method with default path.- Returns:
- a new request (not thread safe)
-
patch
-
patch
Shortcut for patch method with default path.- Returns:
- a new request (not thread safe)
-