PathHandler

data class PathHandler(val handlerPredicate: HttpPredicate, val handlers: List<HttpHandler>) : HttpHandler, Handler<HttpCall>

Constructors

Link copied to clipboard
constructor(vararg handlers: HttpHandler)
constructor(pattern: String, handlers: List<HttpHandler>)
constructor(pattern: String, vararg handlers: HttpHandler)
constructor(handlerPredicate: HttpPredicate, handlers: List<HttpHandler>)

Properties

Link copied to clipboard
open override val callback: (Context<HttpCall>) -> Context<HttpCall>
Link copied to clipboard
open override val handlerPredicate: HttpPredicate
Link copied to clipboard
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
fun describe(): String
Link copied to clipboard
open fun filter(method: HttpMethod): HttpHandler
Link copied to clipboard
open override fun process(context: Context<HttpCall>): Context<HttpCall>
open override fun process(request: HttpRequestPort): HttpContext
Link copied to clipboard
open fun processHttp(context: HttpContext): HttpContext