FilterHandler

data class FilterHandler(val serverPredicate: HttpServerPredicate = HttpServerPredicate(), val block: HttpCallback) : HttpHandler, Handler<HttpServerCall>

Constructors

Link copied to clipboard
constructor(methods: Set<HttpMethod> = emptySet(), pattern: String = "", exception: KClass<out Exception>? = null, status: HttpStatus? = null, block: HttpCallback)
constructor(method: HttpMethod, pattern: String = "", block: HttpCallback)
constructor(pattern: String, block: HttpCallback)
constructor(serverPredicate: HttpServerPredicate = HttpServerPredicate(), block: HttpCallback)

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

Properties

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