open class WebClient
An asynchronous HTTP / HTTP/2 client called WebClient.
The web client makes easy to do HTTP request/response interactions with a web server, and provides advanced features like:
The web client does not deprecate the , it is actually based on it and therefore inherits its configuration and great features like pooling. The HttpClient should be used when fine grained control over the HTTP requests/response is necessary.
WebClient(delegate: WebClient) |
static val __TYPE_ARG: TypeArg<WebClient> |
open fun close(): Unit
Close the client. Closing will close down any pooled connections. Clients should always be closed after use. |
|
open static fun create(vertx: Vertx): WebClient
Create a web client using the provided open static fun create(vertx: Vertx, options: WebClientOptions): WebClient
Create a web client using the provided |
|
open fun delete(requestURI: String): HttpRequest<Buffer>
Create an HTTP DELETE request to send to the server at the default host and port. open fun delete(port: Int, host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP DELETE request to send to the server at the specified host and port. open fun delete(host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP DELETE request to send to the server at the specified host and default port. |
|
open fun deleteAbs(absoluteURI: String): HttpRequest<Buffer>
Create an HTTP DELETE request to send to the server using an absolute URI, specifying a response handler to receive the response |
|
open fun equals(other: Any?): Boolean |
|
open fun get(requestURI: String): HttpRequest<Buffer>
Create an HTTP GET request to send to the server at the default host and port. open fun get(port: Int, host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP GET request to send to the server at the specified host and port. open fun get(host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP GET request to send to the server at the specified host and default port. |
|
open fun getAbs(absoluteURI: String): HttpRequest<Buffer>
Create an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive the response |
|
open fun getDelegate(): WebClient |
|
open fun hashCode(): Int |
|
open fun head(requestURI: String): HttpRequest<Buffer>
Create an HTTP HEAD request to send to the server at the default host and port. open fun head(port: Int, host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP HEAD request to send to the server at the specified host and port. open fun head(host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP HEAD request to send to the server at the specified host and default port. |
|
open fun headAbs(absoluteURI: String): HttpRequest<Buffer>
Create an HTTP HEAD request to send to the server using an absolute URI, specifying a response handler to receive the response |
|
open static fun newInstance(arg: WebClient): WebClient |
|
open fun patch(requestURI: String): HttpRequest<Buffer>
Create an HTTP PATCH request to send to the server at the default host and port. open fun patch(port: Int, host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP PATCH request to send to the server at the specified host and port. open fun patch(host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP PATCH request to send to the server at the specified host and default port. |
|
open fun patchAbs(absoluteURI: String): HttpRequest<Buffer>
Create an HTTP PATCH request to send to the server using an absolute URI, specifying a response handler to receive the response |
|
open fun post(requestURI: String): HttpRequest<Buffer>
Create an HTTP POST request to send to the server at the default host and port. open fun post(port: Int, host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP POST request to send to the server at the specified host and port. open fun post(host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP POST request to send to the server at the specified host and default port. |
|
open fun postAbs(absoluteURI: String): HttpRequest<Buffer>
Create an HTTP POST request to send to the server using an absolute URI, specifying a response handler to receive the response |
|
open fun put(requestURI: String): HttpRequest<Buffer>
Create an HTTP PUT request to send to the server at the default host and port. open fun put(port: Int, host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP PUT request to send to the server at the specified host and port. open fun put(host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP PUT request to send to the server at the specified host and default port. |
|
open fun putAbs(absoluteURI: String): HttpRequest<Buffer>
Create an HTTP PUT request to send to the server using an absolute URI, specifying a response handler to receive the response |
|
open fun request(method: HttpMethod, port: Int, host: String, requestURI: String): HttpRequest<Buffer>open fun request(method: HttpMethod, options: RequestOptions): HttpRequest<Buffer>
Create an HTTP request to send to the server at the specified host and port. open fun request(method: HttpMethod, host: String, requestURI: String): HttpRequest<Buffer>
Create an HTTP request to send to the server at the specified host and default port. open fun request(method: HttpMethod, requestURI: String): HttpRequest<Buffer>
Create an HTTP request to send to the server at the default host and port. |
|
open fun requestAbs(method: HttpMethod, absoluteURI: String): HttpRequest<Buffer>
Create an HTTP request to send to the server using an absolute URI |
|
open fun toString(): String |
|
open static fun wrap(httpClient: HttpClient): WebClient
Wrap an open static fun wrap(httpClient: HttpClient, options: WebClientOptions): WebClient
Wrap an Only the specific web client portion of the |