asHttp4k

fun HttpServerRequest.asHttp4k(vertx: Vertx): Request?(source)

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.