DualSyncAsyncHttpHandler

Functions

Link copied to clipboard
fun Events.and(next: Events): Events
Link copied to clipboard
fun (Request) -> Boolean.asRouter(description: String = unavailable.description): Router

Convert any predicate on a request into a router

Link copied to clipboard
Link copied to clipboard
open override fun close()
Link copied to clipboard
fun HttpHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): (request: Request) -> Response
Link copied to clipboard
abstract operator fun invoke(request: request: Request): Response
abstract operator fun invoke(request: Request, fn: (Response) -> Unit)
Link copied to clipboard
fun Events.then(next: Events): (Event) -> Unit
Link copied to clipboard

Convert a synchronous HttpHandler API to mimic AsyncHttpClient