Liking cljdoc? Tell your friends :D

puppetlabs.ring-middleware.params


assoc-form-paramsclj

(assoc-form-params request encoding)

Parse and assoc parameters from the request body with the request.

Parse and assoc parameters from the request body with the request.
sourceraw docstring

assoc-query-paramsclj

(assoc-query-params request encoding)

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

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

content-typeclj

(content-type request)

Return the content-type of the request, or nil if no content-type is set.

Return the content-type of the request, or nil if no content-type is set.
sourceraw docstring

params-requestclj

(params-request request)
(params-request request options)

Adds parameters from the query string and the request body to the request map. See: wrap-params.

Adds parameters from the query string and the request body to the request
map. See: wrap-params.
sourceraw docstring

parse-paramsclj

(parse-params params encoding)
source

urlencoded-form?clj

(urlencoded-form? request)

True if a request contains a urlencoded form in the body.

True if a request contains a urlencoded form in the body.
sourceraw docstring

wrap-paramsclj

(wrap-params handler)
(wrap-params handler options)

Middleware to parse urlencoded parameters from the query string and form body (if the request is a url-encoded form). Adds the following keys to the request map: :query-params - a map of parameters from the query string :form-params - a map of parameters from the body :params - a merged map of all types of parameter Accepts the following options: :encoding - encoding to use for url-decoding. If not specified, uses the request character encoding, or "UTF-8" if no request character encoding is set.

Middleware to parse urlencoded parameters from the query string and form
body (if the request is a url-encoded form). Adds the following keys to
the request map:
:query-params - a map of parameters from the query string
:form-params  - a map of parameters from the body
:params       - a merged map of all types of parameter
Accepts the following options:
:encoding - encoding to use for url-decoding. If not specified, uses
            the request character encoding, or "UTF-8" if no request
            character encoding is set.
sourceraw docstring

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

× close