open class RequestOptions
Options describing how an HttpClient will make connect to make a request.
Author
Julien Viet
RequestOptions()
Default constructor RequestOptions(other: RequestOptions)
Copy constructor RequestOptions(json: JsonObject)
Create options from JSON |
static val DEFAULT_HOST: String
The default value for host name = "localhost" |
|
static val DEFAULT_PORT: Int
The default value for port = 80 |
|
static val DEFAULT_SSL: Boolean
SSL enabled by default = false |
|
static val DEFAULT_URI: String
The default relative request URI = "" |
open fun getHost(): String
Get the host name to be used by the client request. |
|
open fun getPort(): Int
Get the port to be used by the client request. |
|
open fun getURI(): String |
|
open fun isSsl(): Boolean |
|
open fun setHost(host: String): RequestOptions
Set the host name to be used by the client request. |
|
open fun setPort(port: Int): RequestOptions
Set the port to be used by the client request. |
|
open fun setSsl(ssl: Boolean): RequestOptions
Set whether SSL/TLS is enabled |
|
open fun setURI(uri: String): RequestOptions
Set the request relative URI |