hexagon
2.7.0
jvm
http_server
/
com.hexagonkt.http.server.handlers
/
PathHandler
Path
Handler
data
class
PathHandler
(
val
serverPredicate
:
HttpServerPredicate
,
val
handlers
:
List
<
HttpHandler
>
)
:
HttpHandler
,
Handler
<
HttpServerCall
>
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
(
serverPredicate
:
HttpServerPredicate
,
handlers
:
List
<
HttpHandler
>
)
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
<
HttpServerCall
>
)
:
Context
<
HttpServerCall
>
open
override
fun
process
(
request
:
HttpServerRequestPort
)
:
HttpServerContext
Properties
callback
Link copied to clipboard
open
override
val
callback
:
(
Context
<
HttpServerCall
>
)
->
Context
<
HttpServerCall
>
handlers
Link copied to clipboard
val
handlers
:
List
<
HttpHandler
>
predicate
Link copied to clipboard
open
override
val
predicate
:
(
Context
<
HttpServerCall
>
)
->
Boolean
server
Predicate
Link copied to clipboard
open
override
val
serverPredicate
:
HttpServerPredicate