Package-level declarations

Types

Link copied to clipboard
class MatrixEndpointContext<ENDPOINT : MatrixEndpoint<REQUEST, RESPONSE>, REQUEST, RESPONSE>(val endpoint: ENDPOINT, val requestBody: REQUEST, val call: ApplicationCall)

Functions

Link copied to clipboard
fun Application.installMatrixApiServer(json: Json)
Link copied to clipboard
fun Application.matrixApiServer(json: Json, routes: Route.() -> Unit)
Link copied to clipboard
inline fun <ENDPOINT : MatrixEndpoint<REQUEST, RESPONSE>, REQUEST, RESPONSE> Route.matrixEndpoint(json: Json, mappings: EventContentSerializerMappings, crossinline handler: suspend MatrixEndpointContext<ENDPOINT, REQUEST, RESPONSE>.() -> RESPONSE): Route
@JvmName(name = "matrixEndpointWithUnitResponse")
inline fun <ENDPOINT : MatrixEndpoint<REQUEST, Unit>, REQUEST> Route.matrixEndpoint(json: Json, mappings: EventContentSerializerMappings, crossinline handler: suspend MatrixEndpointContext<ENDPOINT, REQUEST, Unit>.() -> Unit): Route
@JvmName(name = "matrixEndpointWithUnitRequest")
inline fun <ENDPOINT : MatrixEndpoint<Unit, RESPONSE>, RESPONSE> Route.matrixEndpoint(json: Json, mappings: EventContentSerializerMappings, crossinline handler: suspend MatrixEndpointContext<ENDPOINT, Unit, RESPONSE>.() -> RESPONSE): Route
@JvmName(name = "matrixEndpointWithUnit")
inline fun <ENDPOINT : MatrixEndpoint<Unit, Unit>> Route.matrixEndpoint(json: Json, mappings: EventContentSerializerMappings, crossinline handler: suspend MatrixEndpointContext<ENDPOINT, Unit, Unit>.() -> Unit): Route
Link copied to clipboard
inline fun <ENDPOINT : MatrixEndpoint<*, *>> Route.matrixEndpointResource(crossinline block: suspend RoutingContext.(ENDPOINT) -> Unit): Route