Package-level declarations

Functions

Link copied to clipboard
fun HttpServerRequest.asHttp4k(vertx: Vertx): Request?

Adapt the Vertx request to an http4k Request, streaming the body rather than buffering it. Must be called on the event-loop thread: it pauses the request and wires the body handlers synchronously so no inbound chunks are dropped before the http4k handler starts consuming.

Link copied to clipboard
fun Router.fallbackToHttp4k(function: HttpHandler)

Fallback to Http4k handler as a wildcard route.

Link copied to clipboard
fun Response.into(response: HttpServerResponse)
Link copied to clipboard
fun VertxToHttp4kHandler(http: HttpHandler): (RoutingContext) -> Unit

Bridge a single Vertx request to an Http4k handler.