Server
data class Server(adapter: ServerPort, router: Router, settings: ServerSettings)
Content copied to clipboard
Server that listen to HTTP connections on a port and address and route requests using a router.
Constructors
Link copied to clipboard
fun Server(adapter: ServerPort, settings: ServerSettings = ServerSettings(), block: Router.() -> Unit)
Content copied to clipboard
Link copied to clipboard
fun Server(adapter: ServerPort, router: Router, settings: ServerSettings = ServerSettings())
Content copied to clipboard
Types
Functions
Properties
Link copied to clipboard
Provide a Router instance configured with the context path in ServerSettings.
Link copied to clipboard