KtorServerScope

interface KtorServerScope<S : Any> : ServerScope<S>

A Ktor server scope. Supports configuring the application and wrapping endpoints.

Functions

Link copied to clipboard
open fun Application.configureApplication()

Configure the Ktor application.

Link copied to clipboard
abstract fun getData(call: ApplicationCall): S?

Get the scope's data. Will throw an error if it returns null but the scope is non-optional

Link copied to clipboard
open fun Route.wrapEndpoint(optional: Boolean, endpoint: Route.() -> Unit)

Wrap the endpoint. endpoint must be called at some point, it will build the rest of the endpoint.

Inheritors

Link copied to clipboard

Sources

Link copied to clipboard