HandlerBuilder

class HandlerBuilder(var handlers: List<HttpHandler> = emptyList())

Constructors

Link copied to clipboard
constructor(handlers: List<HttpHandler> = emptyList())

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun after(predicate: HttpPredicate = HttpPredicate(), callback: HttpCallbackType)
fun after(pattern: String, callback: HttpCallbackType)
fun after(method: HttpMethod, pattern: String = "", callback: HttpCallbackType)
fun after(methods: Set<HttpMethod> = emptySet(), pattern: String = "", exception: KClass<out Exception>? = null, status: HttpStatus? = null, callback: HttpCallbackType)
Link copied to clipboard
fun before(predicate: HttpPredicate = HttpPredicate(), callback: HttpCallbackType)
fun before(pattern: String, callback: HttpCallbackType)
fun before(method: HttpMethod, pattern: String = "", callback: HttpCallbackType)
fun before(methods: Set<HttpMethod> = emptySet(), pattern: String = "", exception: KClass<out Exception>? = null, status: HttpStatus? = null, callback: HttpCallbackType)
Link copied to clipboard
fun delete(pattern: String = "", callback: HttpCallbackType)
Link copied to clipboard
inline fun <T : Exception> exception(clear: Boolean = true, noinline callback: HttpExceptionCallbackType<T>)
fun <T : Exception> exception(exception: KClass<T>, clear: Boolean = true, callback: HttpExceptionCallbackType<T>)
Link copied to clipboard
fun filter(predicate: HttpPredicate = HttpPredicate(), callback: HttpCallbackType)
fun filter(pattern: String, callback: HttpCallbackType)
fun filter(method: HttpMethod, pattern: String = "", callback: HttpCallbackType)
fun filter(methods: Set<HttpMethod> = emptySet(), pattern: String = "", exception: KClass<out Exception>? = null, status: HttpStatus? = null, callback: HttpCallbackType)
Link copied to clipboard
fun get(pattern: String = "", callback: HttpCallbackType)
Link copied to clipboard
fun handler(contextPath: String = ""): HttpHandler
Link copied to clipboard
fun head(pattern: String = "", callback: HttpCallbackType)
Link copied to clipboard
fun on(predicate: HttpPredicate = HttpPredicate(), callback: HttpCallbackType)
fun on(pattern: String, callback: HttpCallbackType)
fun on(method: HttpMethod, pattern: String = "", callback: HttpCallbackType)
fun on(methods: Set<HttpMethod> = emptySet(), pattern: String = "", exception: KClass<out Exception>? = null, status: HttpStatus? = null, callback: HttpCallbackType)
Link copied to clipboard
fun options(pattern: String = "", callback: HttpCallbackType)
Link copied to clipboard
fun patch(pattern: String = "", callback: HttpCallbackType)
Link copied to clipboard
fun path(pattern: String, pathHandler: PathHandler)
fun path(pattern: String, vararg pathHandlers: HttpHandler)
fun path(pattern: String, block: HandlerBuilder.() -> Unit)
fun path(pattern: String, pathHandlers: List<HttpHandler>)
Link copied to clipboard
fun post(pattern: String = "", callback: HttpCallbackType)
Link copied to clipboard
fun put(pattern: String = "", callback: HttpCallbackType)
Link copied to clipboard
fun trace(pattern: String = "", callback: HttpCallbackType)
Link copied to clipboard
fun use(handler: HttpHandler)
Link copied to clipboard
fun ws(pattern: String = "", callback: HttpCallbackType)