SunHttp

class SunHttp(port: Int = 8000, val stopMode: ServerConfig.StopMode = Immediate) : ServerConfig

Stock version of an SunHttp Server. Not that if you want to configure your own server instance you can duplicate this code and modify it as required. We are purposefully trying to limit options here to keep the API simple for the 99% of use-cases.

Constructors

Link copied to clipboard
constructor(port: Int = 8000)
constructor(port: Int = 8000, stopMode: ServerConfig.StopMode = Immediate)

Properties

Link copied to clipboard
open override val stopMode: ServerConfig.StopMode

Functions

Link copied to clipboard
open override fun toServer(http: HttpHandler): Http4kServer