HttpController

Utility to encapsulate a handler in a class. TODO

Properties

Link copied to clipboard
open override val callback: (Context<HttpCall>) -> Context<HttpCall>
Link copied to clipboard
abstract val handler: HttpHandler
Link copied to clipboard
open override val handlerPredicate: HttpPredicate
Link copied to clipboard
open override val predicate: (Context<HttpCall>) -> Boolean

Functions

Link copied to clipboard
open override fun addPrefix(prefix: String): HttpHandler
Link copied to clipboard
open fun byMethod(): Map<HttpMethod, HttpHandler>
Link copied to clipboard
open fun filter(method: HttpMethod): HttpHandler
Link copied to clipboard
open override fun process(context: Context<HttpCall>): Context<HttpCall>
open fun process(request: HttpRequestPort): HttpContext
Link copied to clipboard
open fun processHttp(context: HttpContext): HttpContext