toggle menu
hexagon
3.7.2
jvm
switch theme
search in API
http_handlers
/
com.hexagonkt.http.handlers
/
PathHandler
Path
Handler
data
class
PathHandler
(
val
handlerPredicate
:
HttpPredicate
,
val
handlers
:
List
<
HttpHandler
>
)
:
HttpHandler
,
Handler
<
HttpCall
>
Members
Constructors
Path
Handler
Link copied to clipboard
constructor
(
vararg
handlers
:
HttpHandler
)
constructor
(
pattern
:
String
,
handlers
:
List
<
HttpHandler
>
)
constructor
(
pattern
:
String
,
vararg
handlers
:
HttpHandler
)
constructor
(
handlerPredicate
:
HttpPredicate
,
handlers
:
List
<
HttpHandler
>
)
Properties
callback
Link copied to clipboard
open
override
val
callback
:
(
Context
<
HttpCall
>
)
->
Context
<
HttpCall
>
handler
Predicate
Link copied to clipboard
open
override
val
handlerPredicate
:
HttpPredicate
handlers
Link copied to clipboard
val
handlers
:
List
<
HttpHandler
>
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
>
describe
Link copied to clipboard
fun
describe
(
)
:
String
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
override
fun
process
(
request
:
HttpRequestPort
)
:
HttpContext
process
Http
Link copied to clipboard
open
fun
processHttp
(
context
:
HttpContext
)
:
HttpContext