Namespace dealing with HTTP link headers
Namespace dealing with HTTP link headers
(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"}}}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close