Liking cljdoc? Tell your friends :D

macchiato.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.

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.
raw docstring

head-requestcljs

(head-request request)

Turns a HEAD request into a GET.

Turns a HEAD request into a GET.
sourceraw docstring

head-responsecljs

(head-response response request)

Returns a nil body if original request was a HEAD.

Returns a nil body if original request was a HEAD.
sourceraw docstring

wrap-headcljs

(wrap-head handler)

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

Middleware that turns any HEAD request into a GET, and then sets the response
body to nil.
sourceraw docstring

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

× close