(params-request request)
(params-request request options)
Adds parameters from the query string and the request body to the request
map. See: wrap-params.
Source
(defn params-request
"Adds parameters from the query string and the request body to the request
map. See: wrap-params."
{:added "1.2"}
([request]
(params-request request {}))
([request options]
(let [encoding (or (:encoding options)
(req/character-encoding request)
"UTF-8")
request (if (:form-params request)
request
(assoc-form-params request encoding))]
(if (:query-params request)
request
(assoc-query-params request encoding)))))