BeforeHandler

data class BeforeHandler(val handlerPredicate: HttpPredicate = HttpPredicate(), val block: HttpCallbackType) : HttpHandler, Handler<HttpCall>

Constructors

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

Properties

Link copied to clipboard
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
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