fun requestOptionsOf(absoluteURI: String? = null, followRedirects: Boolean? = null, headers: Map<String, String>? = null, host: String? = null, method: HttpMethod? = null, port: Int? = null, ssl: Boolean? = null, timeout: Long? = null, uri: String? = null): RequestOptions
A function providing a DSL for building io.vertx.core.http.RequestOptions objects.
Options describing how an io.vertx.core.http.HttpClient will connect to make a request.
absoluteURI
- Parse an absolute URI to use, this will update the ssl, host, port and uri fields.
followRedirects
- Set whether to follow HTTP redirect
headers
- Add a request header.
host
- Set the host name to be used by the client request.
method
- Set the HTTP method to be used by the client request.
port
- Set the port to be used by the client request.
ssl
- Set whether SSL/TLS is enabled
timeout
- Sets the amount of time after which if the request does not return any data within the timeout period an java.util.concurrent.TimeoutException will be passed to the exception handler and the request will be closed.