<@U3K70UN9H> there isn't really a standard way to ...
# http4k
d
@xenomachina there isn't really a standard way to deal with head requests - you need to determine what your desired effect is - do you want to just signify that "this route is here", or do you want to do all of the work (say, for a GET) and then just strip the body? you can use tricks to bind multiple verbs to a single route like this:
Copy code
fun headRoute(getHandler: HttpHandler) = routes(
                HEAD to { _: Request -> Response(OK) },
                GET to getHandler
        )
routes("/myApi" bind headRoute { Response(OK).body("I called GET") })