Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun ServerFilters.CatchAllSse(onError: (Throwable) -> SseResponse = ::originalSseBehaviour): SseFilter
Link copied to clipboard
fun ServerFilters.CatchAllWs(onError: (Throwable) -> WsResponse = ::originalWsBehaviour): WsFilter
Link copied to clipboard

Provides combination CORs and rebind protection

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
fun PolyHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): PolyHandler
fun RoutingSseHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): RoutingSseHandler
fun RoutingWsHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): RoutingWsHandler
Link copied to clipboard
fun DebuggingFilters.PrintSseRequest(out: PrintStream = System.out, debugStream: Boolean = false): SseFilter
Link copied to clipboard
fun DebuggingFilters.PrintSseRequestAndResponse(out: PrintStream = System.out, debugStream: Boolean = false): SseFilter
Link copied to clipboard
fun DebuggingFilters.PrintSseResponse(out: PrintStream = System.out, shouldReport: (SseMessage) -> Boolean = { true }): SseFilter
Link copied to clipboard
fun DebuggingFilters.PrintWsRequest(out: PrintStream = System.out, debugStream: Boolean = false): WsFilter
Link copied to clipboard
fun DebuggingFilters.PrintWsRequestAndResponse(out: PrintStream = System.out, debugStream: Boolean = false): WsFilter
Link copied to clipboard
fun DebuggingFilters.PrintWsResponse(out: PrintStream = System.out, debugStream: Boolean = false, shouldReport: (WsMessage) -> Boolean = { true }): WsFilter
Link copied to clipboard
fun ResponseFilters.ReportSseTransaction(clock: Clock = Clock.systemUTC(), transactionLabeler: SseTransactionLabeler = { it }, recordFn: (SseTransaction) -> Unit): SseFilter

General reporting Filter for an ReportHttpTransaction. Pass an optional HttpTransactionLabeler to create custom labels. This is useful for logging metrics. Note that the passed function blocks the response from completing.

fun ResponseFilters.ReportSseTransaction(timeSource: () -> Instant, transactionLabeler: SseTransactionLabeler = { it }, recordFn: (SseTransaction) -> Unit): SseFilter

General reporting SseFilter for an ReportSseTransaction. Pass an optional SseTransactionLabeler to create custom labels. This is useful for logging metrics. Note that the passed function blocks the response from completing.

Link copied to clipboard
fun ResponseFilters.ReportWsTransaction(clock: Clock = Clock.systemUTC(), transactionLabeler: WsTransactionLabeler = { it }, recordFn: (WsTransaction) -> Unit): WsFilter

General reporting Filter for an ReportHttpTransaction. Pass an optional HttpTransactionLabeler to create custom labels. This is useful for logging metrics. Note that the passed function blocks the response from completing.

fun ResponseFilters.ReportWsTransaction(timeSource: () -> Instant, transactionLabeler: WsTransactionLabeler = { it }, recordFn: (WsTransaction) -> Unit): WsFilter

General reporting WsFilter for an ReportWsTransaction. Pass an optional WsTransactionLabeler to create custom labels. This is useful for logging metrics. Note that the passed function blocks the response from completing.

Link copied to clipboard
Link copied to clipboard

Checks for the