a service to asynchronously return a DisposableResponse from a Request. This is a low-level operation intended for client implementations and middlewares.
a Task to shut down this Shutdown this client, closing any open connections and freeing resources
Submits a request, and provides a callback to process the response.
Submits a request, and provides a callback to process the response.
A Task of the request to submit
A callback for the response to req. The underlying HTTP connection is disposed when the returned task completes. Attempts to read the response body afterward will result in an error.
The result of applying f to the response to req
Submits a request, and provides a callback to process the response.
Submits a request, and provides a callback to process the response.
The request to submit
A callback for the response to req. The underlying HTTP connection is disposed when the returned task completes. Attempts to read the response body afterward will result in an error.
The result of applying f to the response to req
Submits a request and decodes the response.
Submits a request and decodes the response. The underlying HTTP connection is closed at the completion of the decoding.
Submits a request and decodes the response.
Submits a request and decodes the response. The underlying HTTP connection is closed at the completion of the decoding.
Submits a GET request, and provides a callback to process the response.
Submits a GET request, and provides a callback to process the response.
The URI to GET
A callback for the response to a GET on uri. The underlying HTTP connection is disposed when the returned task completes. Attempts to read the response body afterward will result in an error.
The result of applying f to the response to req
Submits a GET request and decodes the response.
Submits a GET request and decodes the response. The underlying HTTP connection is closed at the completion of the decoding.
a service to asynchronously return a DisposableResponse from a Request.
a service to asynchronously return a DisposableResponse from a Request. This is a low-level operation intended for client implementations and middlewares.
a Task to shut down this Shutdown this client, closing any open connections and freeing resources
Returns this client as an HttpService.
Returns this client as an HttpService. It is the responsibility of callers of this service to run the response body to dispose of the underlying HTTP connection.
This is intended for use in proxy servers. fetch, fetchAs, toService, and streaming are safer alternatives, as their signatures guarantee disposal of the HTTP connection.
Returns this client as a Service.
Returns this client as a Service. All connections created by this service are disposed on completion of callback task f.
This method effectively reverses the arguments to fetch, and is preferred when an HTTP client is composed into a larger Kleisli function, or when a common response callback is used by many call sites.
(Since version 0.12) Use toHttpService =<< req for compatibility, or fetch for safety
(Since version 0.12) Use toHttpService.run(Request(Method.GET, uri)).run for compatibility, or get for safety
(Since version 0.12) Use toHttpService.run for compatibility, or fetch for safety
(Since version 0.12) Use fetchAs
(Since version 0.12) Use getAs
(Since version 0.12) Use fetchAs
(Since version 0.12) Use toHttpService =<< req for compatibility, or fetch for safety
(Since version 0.12) Use toHttpService.run(Request(Method.GET, uri)).run for compatibility, or get for safety
(Since version 0.12) Use toHttpService.run for compatibility, or fetch for safety
A Client submits Requests to a server and processes the Response.
a service to asynchronously return a DisposableResponse from a Request. This is a low-level operation intended for client implementations and middlewares.
a Task to shut down this Shutdown this client, closing any open connections and freeing resources