http4k
Toggle table of contents
6.55.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-realtime-core
/
org.http4k.routing
/
thenPoly
then
Poly
fun
Filter
.
thenPoly
(
next
:
HttpHandler
)
:
(
request
:
Request
)
->
Response
(
source
)
fun
SseFilter
.
thenPoly
(
next
:
SseHandler
)
:
(
Request
)
->
SseResponse
(
source
)
fun
WsFilter
.
thenPoly
(
next
:
WsHandler
)
:
(
Request
)
->
WsResponse
(
source
)
Detect the type of a Handler and apply the filter to it. Use this in the construction of PolyFilters