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

# optionsNow

`open fun optionsNow(options: RequestOptions, responseHandler: Handler<HttpClientResponse>): HttpClient`

Sends an HTTP OPTIONS request to the server with the specified options, specifying a response handler to receive the response

### Parameters

`options` - the request options

`responseHandler` - the response handler

Return
a reference to this, so the API can be used fluently

`open fun optionsNow(port: Int, host: String, requestURI: String, responseHandler: Handler<HttpClientResponse>): HttpClient`

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

### Parameters

`port` - the port

`host` - the host

`requestURI` - the relative URI

`responseHandler` - the response handler

Return
a reference to this, so the API can be used fluently

`open fun optionsNow(host: String, requestURI: String, responseHandler: Handler<HttpClientResponse>): HttpClient`

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

### Parameters

`host` - the host

`requestURI` - the relative URI

`responseHandler` - the response handler

Return
a reference to this, so the API can be used fluently

`open fun optionsNow(requestURI: String, responseHandler: Handler<HttpClientResponse>): HttpClient`

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

### Parameters

`requestURI` - the relative URI

`responseHandler` - the response handler

Return
a reference to this, so the API can be used fluently