HttpClient
A multiplatform asynchronous HTTP client, which allows you to make requests and handle responses, extend its functionality with plugins, such as authentication, JSON serialization, and so on.
You can learn how to create a configure HttpClient from Creating and configuring a client.
Constructors
Properties
Typed attributes used as a lightweight container for this client.
HttpClientEngine used to execute network requests.
Provides access to the client's engine configuration.
A pipeline used for receiving a request.
A pipeline used for processing all requests sent by this client.
A pipeline used for processing all responses sent by the server.
A pipeline used for sending a request.
Functions
Returns a new HttpClient by copying this client's configuration and additionally configured by the block parameter.
Gets all the cookies for the specified url for this HttpClient.
Gets all the cookies for the specified urlString for this HttpClient.
Install default transformers. Usually installed by default so there is no need to use it unless you have disabled it via HttpClientConfig.useDefaultTransformers.
Executes a HttpClient DELETE request with the parameters configured in builder.
Executes an HttpClient's DELETE request with the parameters configured in block.
Executes a HttpClient HEAD request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes an HttpClient's DELETE request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes a HttpClient HEAD request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Executes an HttpClient's GET request with the parameters configured in builder.
Executes an HttpClient's GET request with the parameters configured in block.
Executes a HttpClient GET request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes an HttpClient's GET request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes a HttpClient GET request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Executes a HttpClient HEAD request with the parameters configured in builder.
Executes an HttpClient's HEAD request with the parameters configured in block.
Executes a HttpClient HEAD request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes an HttpClient's HEAD request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes a HttpClient HEAD request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Checks if the specified capability is supported by this client.
Returns ByteReadChannel with ByteChannel.close handler that returns SocketTimeoutException instead of SocketTimeoutException.
Returns ByteWriteChannel with ByteChannel.close handler that returns SocketTimeoutException instead of SocketTimeoutException.
Executes a HttpClient OPTIONS request with the parameters configured in builder.
Executes an HttpClient's OPTIONS request with the parameters configured in block.
Executes a HttpClient OPTIONS request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes an HttpClient's OPTIONS request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes a HttpClient OPTIONS request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Executes a HttpClient PATCH request with the parameters configured in builder.
Executes an HttpClient's PATCH request with the parameters configured in block.
Executes a HttpClient PATCH request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes an HttpClient's PATCH request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes a HttpClient PATCH request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Returns a plugin installed in HttpClient.
Returns a plugin installed in this client. Returns null
if the plugin was not previously installed.
Executes an HttpClient's POST request with the parameters configured in builder.
Executes an HttpClient's POST request with the parameters configured in block.
Executes a HttpClient POST request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes an HttpClient's POST request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes a HttpClient POST request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Prepares an HttpClient's DELETE request with the parameters configured in builder.
Prepares an HttpClient's DELETE request with the parameters configured in block.
Prepares a HttpClient HEAD request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares an HttpClient's DELETE request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares a HttpClient HEAD request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Prepares a request containing form parameters encoded using the x-www-form-urlencoded
format.
Prepares a POST request containing form parameters encoded using the multipart/form-data
format.
Prepares an HttpClient's GET request with the parameters configured in builder.
Prepares an HttpClient's GET request with the parameters configured in block.
Prepares a HttpClient GET request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares an HttpClient's GET request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares a HttpClient GET request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Prepares an HttpClient's HEAD request with the parameters configured in builder.
Prepares an HttpClient's HEAD request with the parameters configured in block.
Prepares a HttpClient HEAD request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares an HttpClient's HEAD request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares a HttpClient HEAD request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Prepares an HttpClient's OPTIONS request with the parameters configured in builder.
Prepares an HttpClient's OPTIONS request with the parameters configured in block.
Prepares a HttpClient OPTIONS request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares an HttpClient's OPTIONS request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares a HttpClient OPTIONS request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Prepares an HttpClient's PATCH request with the parameters configured in builder.
Prepares an HttpClient's PATCH request with the parameters configured in block.
Prepares a HttpClient PATCH request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares an HttpClient's PATCH request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares a HttpClient PATCH request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Prepares an HttpClient's POST request with the parameters configured in builder.
Prepares an HttpClient's POST request with the parameters configured in block.
Prepares a HttpClient POST request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares an HttpClient's POST request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares a HttpClient POST request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Prepares an HttpClient's PUT request with the parameters configured in builder.
Prepares an HttpClient's PUT request with the parameters configured in block.
Prepares a HttpClient PUT request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares an HttpClient's PUT request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Prepares a HttpClient PUT request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Prepares an HttpClient's request with the parameters specified using builder.
Prepares an HttpClient's request with the parameters specified using block.
Prepares an HttpClient's request with the url and the parameters configured in block.
Prepares an HttpClient's request with the urlString and the parameters configured in block.
Prepares a HttpClient request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Executes a HttpClient PUT request with the parameters configured in builder.
Executes an HttpClient's PUT request with the parameters configured in block.
Executes a HttpClient PUT request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes an HttpClient's PUT request with the specified url and an optional block receiving an HttpRequestBuilder for configuring the request.
Executes a HttpClient PUT request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Executes an HttpClient's request with the parameters specified using builder.
Executes an HttpClient's request with the parameters specified in block.
Executes an HttpClient's request with the url and the parameters configured in block.
Executes an HttpClient's request with the urlString and the parameters configured in block.
Executes a HttpClient request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Opens a block with ClientSSESession.
Opens a ClientSSESession.
Opens a block with ClientSSESession.
Opens a ClientSSESession.
Makes a request containing form parameters encoded using the x-www-form-urlencoded
format.
Makes a POST request containing form parameters encoded using the multipart/form-data
format.
Opens a block with DefaultClientWebSocketSession.
Opens a DefaultClientWebSocketSession.
Opens a block with DefaultClientWebSocketSession.
Opens a block with secure DefaultClientWebSocketSession.