toggle menu
hexagon
3.7.2
jvm
switch theme
search in API
http_handlers
/
com.hexagonkt.http.handlers
/
HandlerBuilder
/
on
on
fun
on
(
predicate
:
HttpPredicate
=
HttpPredicate()
,
callback
:
HttpCallbackType
)
fun
on
(
methods
:
Set
<
HttpMethod
>
=
emptySet()
,
pattern
:
String
=
""
,
exception
:
KClass
<
out
Exception
>
?
=
null
,
status
:
HttpStatus
?
=
null
,
callback
:
HttpCallbackType
)
fun
on
(
method
:
HttpMethod
,
pattern
:
String
=
""
,
callback
:
HttpCallbackType
)
fun
on
(
pattern
:
String
,
callback
:
HttpCallbackType
)