toggle menu
hexagon
3.7.2
jvm
switch theme
search in API
http_handlers
/
com.hexagonkt.http.handlers
/
HttpController
Http
Controller
interface
HttpController
:
HttpHandler
Utility to encapsulate a handler in a class. TODO
Members
Properties
callback
Link copied to clipboard
open
override
val
callback
:
(
Context
<
HttpCall
>
)
->
Context
<
HttpCall
>
handler
Link copied to clipboard
abstract
val
handler
:
HttpHandler
handler
Predicate
Link copied to clipboard
open
override
val
handlerPredicate
:
HttpPredicate
predicate
Link copied to clipboard
open
override
val
predicate
:
(
Context
<
HttpCall
>
)
->
Boolean
Functions
add
Prefix
Link copied to clipboard
open
override
fun
addPrefix
(
prefix
:
String
)
:
HttpHandler
by
Method
Link copied to clipboard
open
fun
byMethod
(
)
:
Map
<
HttpMethod
,
HttpHandler
>
filter
Link copied to clipboard
open
fun
filter
(
method
:
HttpMethod
)
:
HttpHandler
process
Link copied to clipboard
open
override
fun
process
(
context
:
Context
<
HttpCall
>
)
:
Context
<
HttpCall
>
open
fun
process
(
request
:
HttpRequestPort
)
:
HttpContext
process
Http
Link copied to clipboard
open
fun
processHttp
(
context
:
HttpContext
)
:
HttpContext