HttpServerSettings

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

Holds server settings info.

Constructors

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

Properties

Link copied to clipboard
val banner: String?

Server banner message.

Link copied to clipboard
val bindAddress: InetAddress

Address for the server.

Link copied to clipboard
val bindPort: Int = 2010

Port for the server.

Link copied to clipboard
val bindUrl: URL

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

Link copied to clipboard
val contextPath: String

Context Path for the server's incoming requests.

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.