nee-ctx-web-ktor / dev.neeffect.nee.ctx.web.pure

Package dev.neeffect.nee.ctx.web.pure

Types

InitialRouting

class InitialRouting<R, G : TxProvider<R, G>> : Routing<R, G>

RouteBuilder

class RouteBuilder<R, G : TxProvider<R, G>>

Routing

sealed class Routing<R, G : TxProvider<R, G>>

RoutingDef

data class RoutingDef<R, G : TxProvider<R, G>> : Routing<R, G>

Functions

delete

fun <A : Any, R, G : TxProvider<R, G>> RouteBuilder<R, G>.delete(path: String = "", f: (ApplicationCall) -> Nee<WebContext<R, G>, Any, A>): RoutingDef<R, G>

get

fun <A : Any, R, G : TxProvider<R, G>> RouteBuilder<R, G>.get(path: String = "", f: (ApplicationCall) -> Nee<WebContext<R, G>, Any, A>): RoutingDef<R, G>

head

fun <A : Any, R, G : TxProvider<R, G>> RouteBuilder<R, G>.head(path: String = "", f: (ApplicationCall) -> Nee<WebContext<R, G>, Any, A>): RoutingDef<R, G>

nested

fun <R, G : TxProvider<R, G>> RouteBuilder<R, G>.nested(path: String = "", f: (Routing<R, G>) -> RoutingDef<R, G>): RoutingDef<R, G>

options

fun <A : Any, R, G : TxProvider<R, G>> RouteBuilder<R, G>.options(path: String = "", f: (ApplicationCall) -> Nee<WebContext<R, G>, Any, A>): RoutingDef<R, G>

patch

fun <A : Any, R, G : TxProvider<R, G>> RouteBuilder<R, G>.patch(path: String = "", f: (ApplicationCall) -> Nee<WebContext<R, G>, Any, A>): RoutingDef<R, G>

post

fun <A : Any, R, G : TxProvider<R, G>> RouteBuilder<R, G>.post(path: String = "", f: (ApplicationCall) -> Nee<WebContext<R, G>, Any, A>): RoutingDef<R, G>

put

fun <A : Any, R, G : TxProvider<R, G>> RouteBuilder<R, G>.put(path: String = "", f: (ApplicationCall) -> Nee<WebContext<R, G>, Any, A>): RoutingDef<R, G>

startNettyServer

fun <R, G : TxProvider<R, G>> startNettyServer(port: Int, mapper: ObjectMapper, webContextProvider: WebContextProvider<R, G>, aRouting: (Routing<R, G>) -> RoutingDef<R, G>): IO<Unit>