PathHandler

data class PathHandler(val serverPredicate: HttpServerPredicate, val handlers: List<HttpHandler>) : HttpHandler, Handler<HttpServerCall>

Constructors

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

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<HttpServerCall>): Context<HttpServerCall>
open override fun process(request: HttpServerRequestPort): HttpServerContext

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val predicate: (Context<HttpServerCall>) -> Boolean
Link copied to clipboard