vertx / io.vertx.reactivex.core.http / HttpClient / request

request

open fun request(method: HttpMethod, options: RequestOptions): HttpClientRequest

Create an HTTP request to send to the server with the specified options.

Parameters

method - the HTTP method

options - the request options

Return
an HTTP client request object

open fun request(method: HttpMethod, port: Int, host: String, requestURI: String): HttpClientRequest

Create an HTTP request to send to the server at the specified host and port.

Parameters

method - the HTTP method

port - the port

host - the host

requestURI - the relative URI

Return
an HTTP client request object

open fun request(method: HttpMethod, host: String, requestURI: String): HttpClientRequest

Create an HTTP request to send to the server at the specified host and default port.

Parameters

method - the HTTP method

host - the host

requestURI - the relative URI

Return
an HTTP client request object

open fun request(method: HttpMethod, options: RequestOptions, responseHandler: Handler<HttpClientResponse>): HttpClientRequest

Create an HTTP request to send to the server with the specified options, specifying a response handler to receive

Parameters

method - the HTTP method

options - the request options

responseHandler -

Return
an HTTP client request object

open fun request(method: HttpMethod, port: Int, host: String, requestURI: String, responseHandler: Handler<HttpClientResponse>): HttpClientRequest

Create an HTTP request to send to the server at the specified host and port, specifying a response handler to receive the response

Parameters

method - the HTTP method

port - the port

host - the host

requestURI - the relative URI

responseHandler - the response handler

Return
an HTTP client request object

open fun request(method: HttpMethod, host: String, requestURI: String, responseHandler: Handler<HttpClientResponse>): HttpClientRequest

Create an HTTP request to send to the server at the specified host and default port, specifying a response handler to receive the response

Parameters

method - the HTTP method

host - the host

requestURI - the relative URI

responseHandler - the response handler

Return
an HTTP client request object

open fun request(method: HttpMethod, requestURI: String): HttpClientRequest

Create an HTTP request to send to the server at the default host and port.

Parameters

method - the HTTP method

requestURI - the relative URI

Return
an HTTP client request object

open fun request(method: HttpMethod, requestURI: String, responseHandler: Handler<HttpClientResponse>): HttpClientRequest

Create an HTTP request to send to the server at the default host and port, specifying a response handler to receive the response

Parameters

method - the HTTP method

requestURI - the relative URI

responseHandler - the response handler

Return
an HTTP client request object