Essentially doing a GET but stripping out the body...
# http4k
x
Essentially doing a GET but stripping out the body is the behavior I'm looking for. For now I'm just wrapping my top-level handler with this:
Copy code
fun headHandler(next: HttpHandler): HttpHandler =
        { request: Request ->
            if (request.method == Method.HEAD) {
                next(request.method(Method.GET)).body(Body.EMPTY)
            } else {
                next(request)
            }
        }