a service to asynchronously return a DisposableResponse from a Request. This is a low-level operation intended for client implementations and middleware.
a Task to shut down this Shutdown this client, closing any open connections and freeing resources
Submits a GET request to the URI specified by the String and decodes the response on success.
Submits a GET request to the URI specified by the String and decodes the response on success. On failure, the status code is returned. The underlying HTTP connection is closed at the completion of the decoding.
Submits a GET request to the specified URI and decodes the response on success.
Submits a GET request to the specified URI and decodes the response on success. On failure, the status code is returned. The underlying HTTP connection is closed at the completion of the decoding.
Submits a request and decodes the response on success.
Submits a request and decodes the response on success. On failure, the status code is returned. The underlying HTTP connection is closed at the completion of the decoding.
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, regardless of the status code.
Submits a request and decodes the response, regardless of the status code. The underlying HTTP connection is closed at the completion of the decoding.
Submits a request and decodes the response, regardless of the status code.
Submits a request and decodes the response, regardless of the status code. The underlying HTTP connection is closed at the completion of the decoding.
Submits a request and decodes the response on success.
Submits a request and decodes the response on success. On failure, the status code is returned. 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
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 middleware.
a Task to shut down this Shutdown this client, closing any open connections and freeing resources
Shuts this client down, and blocks until complete.
Submits a request and returns the response status
Submits a request and returns the response status
Submits a request and returns true if and only if the response status is successful
Submits a request and returns true if and only if the response status is successful
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.14) Use expect
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.
(Since version 0.14) Use expect
(Since version 0.14) Use expect
(Since version 0.14) Use expect
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 middleware.
a Task to shut down this Shutdown this client, closing any open connections and freeing resources