Liking cljdoc? Tell your friends :D

barebuild.utils.query

The query value. A map of keyword to non-blank string, the thing both the URL projection and the request are about. canonicalize-query is its normal form, so two queries that mean the same compare equal wherever they came from, the address bar or a server's echo.

The query value. A map of keyword to non-blank string, the thing both the URL projection and
the request are about. `canonicalize-query` is its normal form, so two queries that mean the
same compare equal wherever they came from, the address bar or a server's echo.
raw docstring

->query-stringcljs

(->query-string m)

Render a query as a url query string, key-sorted so the same query always renders the same way regardless of how the map was built. e.g. {tasks.sort "end"} -> "tasks.sort=end"

Render a query as a url query string, key-sorted so the same query always renders the same
way regardless of how the map was built. e.g. {tasks.sort "end"} -> "tasks.sort=end"
sourceraw docstring

canonicalize-querycljs

(canonicalize-query q)

Ensure all query keys are keywords and values are non-blank strings. Entries whose value is nil or blank are dropped.

Ensure all query keys are keywords and values are non-blank strings.
Entries whose value is nil or blank are dropped.
sourceraw docstring

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