toggle menu
http4k
6.9.0.0
jvm
switch theme
search in API
http4k-realtime-core
/
org.http4k.server
Package-level
declarations
Types
Functions
Types
Poly
Handler
Link copied to clipboard
typealias
PolyHandler
=
org.http4k.core.PolyHandler
Poly
Server
Config
Link copied to clipboard
interface
PolyServerConfig
:
ServerConfig
Standard interface for creating a configured Server which supports Websockets or SSE
Functions
as
Server
Link copied to clipboard
@
JvmName
(
name
=
"sseHandlerAsServer"
)
fun
SseHandler
.
asServer
(
config
:
PolyServerConfig
)
:
Http4kServer
@
JvmName
(
name
=
"wsHandlerAsServer"
)
fun
WsHandler
.
asServer
(
config
:
PolyServerConfig
)
:
Http4kServer
@
JvmName
(
name
=
"sseConsumerAsServer"
)
fun
SseConsumer
.
asServer
(
config
:
PolyServerConfig
)
:
Http4kServer
@
JvmName
(
name
=
"wsConsumerAsServer"
)
fun
WsConsumer
.
asServer
(
config
:
PolyServerConfig
)
:
Http4kServer
fun
PolyHandler
.
asServer
(
config
:
PolyServerConfig
)
:
Http4kServer