vertx / io.vertx.core.http / RequestOptions

# RequestOptions

`open class RequestOptions`

Options describing how an HttpClient will make connect to make a request.

Author
Julien Viet

### Constructors

<init> | `RequestOptions()` Default constructor `RequestOptions(other: RequestOptions)` Copy constructor `RequestOptions(json: JsonObject)` Create options from JSON

### Properties

DEFAULT_HOST | `static val DEFAULT_HOST: String` The default value for host name = "localhost"
DEFAULT_PORT | `static val DEFAULT_PORT: Int` The default value for port = 80
DEFAULT_SSL | `static val DEFAULT_SSL: Boolean` SSL enabled by default = false
DEFAULT_URI | `static val DEFAULT_URI: String` The default relative request URI = ""

### Functions

getHost | `open fun getHost(): String` Get the host name to be used by the client request.
getPort | `open fun getPort(): Int` Get the port to be used by the client request.
getURI | `open fun getURI(): String`
isSsl | `open fun isSsl(): Boolean`
setHost | `open fun setHost(host: String): RequestOptions` Set the host name to be used by the client request.
setPort | `open fun setPort(port: Int): RequestOptions` Set the port to be used by the client request.
setSsl | `open fun setSsl(ssl: Boolean): RequestOptions` Set whether SSL/TLS is enabled
setURI | `open fun setURI(uri: String): RequestOptions` Set the request relative URI