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 is a website building & hosting documentation for Clojure/Script libraries

× close