Package-level declarations

Types

Link copied to clipboard
class Http4kChannelHandler(handler: HttpHandler, appExecutor: Executor) : SimpleChannelInboundHandler<FullHttpRequest>

Exposed to allow for insertion into a customised Netty server instance

Link copied to clipboard
class Http4kChannelInitializer(val ws: WsHandler?, val http: HttpHandler?, val maxSize: Int) : ChannelInitializer<SocketChannel> , Closeable
Link copied to clipboard
class Http4kWsChannelHandler(wSocket: WsConsumer, appExecutor: Executor, bufferCapacity: Int, lowWaterMark: Float = 0.5f, outgoingFrameSize: Int = 64 * 1024) : SimpleChannelInboundHandler<WebSocketFrame>
Link copied to clipboard
class Http4kWsHeartbeatHandler : ChannelInboundHandlerAdapter

Configure the server-initiated heartbeat. Send a PING when the server writer is idle. Close the connection if the server reader is idle (i.e. the client never responsed with a PONG)

Link copied to clipboard
class Netty(port: Int = 8000, val stopMode: ServerConfig.StopMode) : PolyServerConfig

Stock version of an Netty Server. Not that if you want to configure your own server instance you can duplicate this code and modify it as required. We are purposefully trying to limit options here to keep the API simple for the 99% of use-cases.

Link copied to clipboard
class WebSocketServerHandler(wsHandler: WsHandler, appExecutor: Executor, heartBeatInterval: Duration = Duration.ofSeconds(60)) : ChannelInboundHandlerAdapter

Functions

Link copied to clipboard