HttpServerPort

interface HttpServerPort

Server instance of one kind.

Functions

Link copied to clipboard
abstract fun options(): Map<String, *>

Return the adapter's allowed configuration options with its values.

Link copied to clipboard
abstract fun runtimePort(): Int

Get the runtime port if started, throw an exception otherwise.

Link copied to clipboard
abstract fun shutDown()

Stop the instance of the engine.

Link copied to clipboard
abstract fun started(): Boolean

Check whether the server has been started or not.

Link copied to clipboard
abstract fun startUp(server: HttpServer)

Build a server of a certain engine from a server definition and runs it.

Link copied to clipboard
abstract fun supportedFeatures(): Set<HttpServerFeature>

Return the server adapter's supported features.

Link copied to clipboard
abstract fun supportedProtocols(): Set<HttpProtocol>

Return the server adapter's supported protocols.