Back

format-request-interceptor (clj)

(source)

function

(format-request-interceptor) (format-request-interceptor default-muuntaja)
Interceptor for request formatting. Decodes the request body into `:body-params` using the `:muuntaja/request` key in request if the `:body-params` doesn't already exist. Swagger-data will be omitted when `:form`, but no `:body`, parameters are defined. Optionally takes a default muuntaja instance as argument. | key | description | | -------------|-------------| | `:muuntaja` | `muuntaja.core/Muuntaja` instance, does not mount if not set.

Examples