WsResponseWithContext

class WsResponseWithContext(val delegate: WsResponse, val context: Map<String, Any> = emptyMap()) : WsResponse, RoutedMessage

Constructors

Link copied to clipboard
constructor(delegate: WsResponse, uriTemplate: UriTemplate)
constructor(delegate: WsResponse, context: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard
open override val consumer: WsConsumer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val subprotocol: String?
Link copied to clipboard
open override val xUriTemplate: UriTemplate

Functions

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
Link copied to clipboard
fun SseHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): (Request) -> SseResponse
fun WsHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): (Request) -> WsResponse
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open operator override fun invoke(p1: Websocket)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun withConsumer(consumer: WsConsumer): WsResponse
Link copied to clipboard
open override fun withSubprotocol(subprotocol: String?): WsResponse