Liking cljdoc? Tell your friends :D

ring.middleware.accept


find-headerclj

(find-header req-or-resp header-name)
(find-header req-or-resp header-name not-found)

Looks up a header in a Ring response (or request) case insensitively, returning the header map entry, or not-found (default nil) if no matching header is present.

Looks up a header in a Ring response (or request) case insensitively,
returning the header map entry, or `not-found` (default `nil`) if no
matching header is present.
sourceraw docstring

get-headerclj

(get-header req-or-resp header-name)
(get-header req-or-resp header-name not-found)

Looks up a header in a Ring response (or request) case insensitively, returning the value of the header, or not-found (default nil) if no matching header is present.

Looks up a header in a Ring response (or request) case insensitively,
returning the value of the header, or `not-found` (default `nil`) if
no matching header is present.
sourceraw docstring

wrap-acceptclj

(wrap-accept handler {:keys [mime charset encoding language]})
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close