Liking cljdoc? Tell your friends :D

clj-http.links

Namespace dealing with HTTP link headers

Namespace dealing with HTTP link headers
raw docstring

(read-link-headers header)
source

(read-link-params params)
source

(read-link-value value)
source

(wrap-links client)

Add a :links key to the response map that contains parsed Link headers. The links will be represented as a map, with the 'rel' value being the key. The URI is placed under the 'href' key, to mimic the HTML link element.

e.g. Link: http://example.com/page2.html; rel=next; title="Page 2" => {:links {:next {:href "http://example.com/page2.html" :title "Page 2"}}}

Add a :links key to the response map that contains parsed Link headers. The
links will be represented as a map, with the 'rel' value being the key. The
URI is placed under the 'href' key, to mimic the HTML link element.

e.g. Link: <http://example.com/page2.html>; rel=next; title="Page 2"
=> {:links {:next {:href "http://example.com/page2.html"
:title "Page 2"}}}
sourceraw docstring

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

× close