pick
pick copied to clipboard
A Clojure library for HTTP server-driven content negotiation.
It will be very useful to have it released in clojars. Thanks.
Given these opts: ``` {:juxt.http/variants ({:juxt.http/content-type nil, :juxt.http/content-language (), :juxt.http/content-encoding ({:juxt.http/content-coding "deflate"})}), :juxt.http/request-headers {"accept-encoding" ({:juxt.http/codings "gzip"} {:juxt.http/codings "compress"}), "accept" nil, "accept-language" nil}} ``` pick produces a variant, but the client...
Given these opts: ``` {:juxt.http/variants ({:juxt.http/content-type nil, :juxt.http/content-language (), :juxt.http/content-encoding ({:juxt.http/content-coding "identity"}), :yada.representation/rep {:a 10}}), :juxt.http/request-headers {"accept-encoding" ({:juxt.http/codings "gzip"} {:juxt.http/codings "identity", :juxt.http/qvalue 0.0}), "accept" nil, "accept-language" nil}} ``` The client...