HttpServerSettings

class HttpServerSettings(val bindAddress: InetAddress = InetAddress.getLoopbackAddress(), val bindPort: Int = 2010, val protocol: HttpProtocol = HTTP, val sslSettings: SslSettings? = null, val zip: Boolean = false)

Holds server settings info.

Constructors

Link copied to clipboard
constructor(bindAddress: InetAddress = InetAddress.getLoopbackAddress(), bindPort: Int = 2010, protocol: HttpProtocol = HTTP, sslSettings: SslSettings? = null, zip: Boolean = false)

Properties

Link copied to clipboard

Address for the server.

Link copied to clipboard
val bindPort: Int = 2010

Port for the server.

Link copied to clipboard

Base URI to connect to the server. It lacks the port (as it can be dynamic).

Link copied to clipboard

Server's protocol.

Link copied to clipboard

SSL settings info for configuring the server.

Link copied to clipboard
val zip: Boolean = false

Option to compress server responses.

Functions

Link copied to clipboard
fun with(bindAddress: InetAddress = this.bindAddress, bindPort: Int = this.bindPort, protocol: HttpProtocol = this.protocol, sslSettings: SslSettings? = this.sslSettings, zip: Boolean = this.zip): HttpServerSettings