Functions

Link copied to clipboard
abstract fun addErrorPages(errorPages: Array<ErrorPage>)
Adds error pages that will be used when handling exceptions.
Link copied to clipboard
abstract fun setAddress(address: InetAddress)
Sets the specific network address that the server should bind to.
Link copied to clipboard
abstract fun setCompression(compression: Compression)
Sets the compression configuration that will be applied to the server's default connector.
Link copied to clipboard
abstract fun setErrorPages(errorPages: Set<out ErrorPage>)
Sets the error pages that will be used when handling exceptions.
Link copied to clipboard
abstract fun setHttp2(http2: Http2)
Sets the HTTP/2 configuration that will be applied to the server.
Link copied to clipboard
abstract fun setPort(port: Int)
Sets the port that the web server should listen on.
Link copied to clipboard
abstract fun setServerHeader(serverHeader: String)
Sets the server header value.
Link copied to clipboard
open fun setShutdown(shutdown: Shutdown)
Sets the shutdown configuration that will be applied to the server.
Link copied to clipboard
abstract fun setSsl(ssl: Ssl)
Sets the SSL configuration that will be applied to the server's default connector.
Link copied to clipboard
abstract fun setSslBundles(sslBundles: SslBundles)
Sets the SSL bundles that can be used to configure SSL connections.