Release underlying resources associated with the HttpClient
Release underlying resources associated with the HttpClient
The resultant Future[Unit]
will resolve once the resources associated
with the client have been freed.
Dispatch a request, resulting in the response
Dispatch a request, resulting in the response
request to dispatch
the response. The cleanup of the resources associated with
this dispatch are tied to the BodyReader of the ClientResponse.
Release of resources is triggered by complete consumption of the MessageBody
or by calling MessageBody.discard()
, whichever comes first.
Perform a GET request
Perform a GET request
request URL
headers to attach to the request
continuation with which to handle the request
ExecutionContext
on which to run the request
Safely dispatch a client request
Safely dispatch a client request
Resources associated with this dispatch are guarenteed to be cleaned up during the
resolution of the returned Future[T]
, regardless of if it is successful or not.
The resources _may_ be cleaned up before the future resolves, but this is dependant on both the implementation and if the resources have been fully consumed.
Generic interface for making HTTP client requests
A HttpClient hides the details of the underlying sockets, connection pools etc. For a representation of a concrete session implementation see HttpClientSession.