Liking cljdoc? Tell your friends :D

diction.http


->parameter-element-idclj

(->parameter-element-id {:keys [method uri] :as route})

Converts route to parameter element ID given the :method and :uri in the route. Returns the parameter validation element ID (if found), or nil.

Converts `route` to parameter element ID given the `:method` and `:uri`
in the `route`.  Returns the parameter validation element ID (if found), or `nil`.
sourceraw docstring

->payload-element-idclj

(->payload-element-id {:keys [method uri] :as route})

Converts route to payload element ID given the :method and :uri in the route. Returns the payload validation element ID (if found), or nil.

Converts `route` to payload element ID given the `:method` and `:uri`
in the `route`.  Returns the payload validation element ID (if found), or `nil`.
sourceraw docstring

->routeclj

(->route request)

Convert HTTP request to route map with :method and :uri keys.

Convert HTTP `request` to route map with `:method` and `:uri` keys.
sourceraw docstring

bad-request-response-fclj

Atom for bad request response function.

Atom for bad request response function.
sourceraw docstring

bad-request-response-f!clj

(bad-request-response-f! f)

Sets the bad request response function to f. (bad-request-response-f! (fn [x] {:status 400 :body x}))

Sets the bad request response function to `f`.
(bad-request-response-f! (fn [x] {:status 400 :body x}))
sourceraw docstring

parameter-validation-routesclj

Atom with parameter validation routes.

{"path" {:method :parameter-data-element-validation-id}}
Atom with parameter validation routes.

```
{"path" {:method :parameter-data-element-validation-id}}
```
sourceraw docstring

parameter-validation-routes!clj

(parameter-validation-routes! pvrs)

Sets the parameter-validation-routes map with pvrs.

Sets the `parameter-validation-routes` map with `pvrs`.
sourceraw docstring

payload-validation-routesclj

Atom with payload validation routes.

{"path" {:method :data-element-validation-id}}
Atom with payload validation routes.

```
{"path" {:method :data-element-validation-id}}
```
sourceraw docstring

payload-validation-routes!clj

(payload-validation-routes! pvrs)

Set the payload-validation-routes map with pvrs.

Set the `payload-validation-routes` map with `pvrs`.
sourceraw docstring

simple-bad-request-responseclj

(simple-bad-request-response body)

Simple bad request due to invalid payload or parameters given validation error messages body.

Simple bad request due to invalid payload or parameters given validation
error messages `body`.
sourceraw docstring

validateclj

(validate route-lookup-f request-key v-type handler)

Validation of request payload wrapped function.

Validation of request payload wrapped function.
sourceraw docstring

validate-parametersclj

Partial function to validation parameters.

Partial function to validation parameters.
sourceraw docstring

validate-payloadclj

Partial function to validate payload.

Partial function to validate payload.
sourceraw docstring

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

× close