Liking cljdoc? Tell your friends :D

ring.middleware.head

Middleware to simplify replying to HEAD requests.

A response to a HEAD request should be identical to a GET request, with the
exception that a response to a HEAD request should have an empty body.

head-request

Type: var

Added: 1.2

Arguments:

[request]
Turns a HEAD request into a GET.

View source

head-response

Type: var

Added: 1.2

Arguments:

[response request]
Returns a nil body if original request was a HEAD.

View source

wrap-head

Type: var

Added: 1.1

Arguments:

[handler]
Middleware that turns any HEAD request into a GET, and then sets the response
body to nil.

View source

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close