Package com.rnett.krosstalk.ktor.server

A basic Krosstalk server implementation using Ktor. See module description.

Types

Link copied to clipboard
interface KtorKrosstalkServer : KrosstalkServer<KtorServerScope<*>>
Link copied to clipboard
object KtorServer : ServerHandler<KtorServerScope<*>>

A Krosstalk server handler that adds the krosstalk method endpoints to a Ktor server.

Link copied to clipboard
interface KtorServerHeaderScope<T : Any> : KtorServerScope<T>

A Ktor server scope that only reads headers.

Link copied to clipboard
interface KtorServerScope<S : Any> : ServerScope<S>

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

Functions

Link copied to clipboard
fun <K : Krosstalk, KrosstalkServer<KtorServerScope<*>>> K.defineKtor(application: Application)
fun <K : Krosstalk, KrosstalkServer<KtorServerScope<*>>> K.defineKtor(route: Route)

Defines the necessary routes for this's methods.