api

http4k / org.http4k.server / Http4kServer

Http4kServer

interface Http4kServer : AutoCloseable (source)

Functions

Name Summary
block open fun block(): Unit
close open fun close(): Unit
port abstract fun port(): Int
start abstract fun start(): Http4kServer
stop abstract fun stop(): Http4kServer

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T

Inheritors

Name Summary
Http4kK8sServer class Http4kK8sServer : Http4kServer
A K8S server consists of a main application and a health application, running on 2 different ports. This class provides unified start/stop control.