Liking cljdoc? Tell your friends :D

clojure-commons.query-params


assoc-paramclj

(assoc-param map key val)

Taken from ring.middleware.params. Needed because we need to write a function that uses hidden functions.

Associate a key with a value. If the key already exists in the map, create a vector of values.

Taken from ring.middleware.params. Needed because we need to write
 a function that uses hidden functions. 

Associate a key with a value. If the key already exists in the map,
create a vector of values.
sourceraw docstring

assoc-query-paramsclj

(assoc-query-params request encoding)

Taken from ring.middleware.params. Needed because we need to write a function that uses hidden functions.

Parse and assoc parameters from the query string with the request.

Taken from ring.middleware.params. Needed because we need to write
a function that uses hidden functions. 

Parse and assoc parameters from the query string with the request.
sourceraw docstring

parse-paramsclj

(parse-params param-string encoding)

Taken from ring.middleware.params. Needed because we need to write a function that uses hidden functions. We are using clj-http.util/url-decode since ring.util.codec/url-decode does not properly decode '+' characters into spaces.

Parse parame+ters from a string into a map.

Taken from ring.middleware.params. Needed because we need to write a function that uses hidden
functions. We are using clj-http.util/url-decode since ring.util.codec/url-decode does not
properly decode '+' characters into spaces.

Parse parame+ters from a string into a map.
sourceraw docstring

wrap-query-paramsclj

(wrap-query-params handler & [opts])

Middleware to parse parameters from the query string (if it exists). It does not touch the form body. Adds the following key to the request map. :query-params - a map of parameters from the query string Takes an optional configuration map. Recognized keys are: :encoding - encoding to use for url-decoding.

Middleware to parse parameters from the query string (if it exists). It
does not touch the form body. Adds the following key to the request map.
  :query-params - a map of parameters from the query string
Takes an optional configuration map. Recognized keys are:
  :encoding - encoding to use for url-decoding.
sourceraw docstring

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

× close