Back
format-response-interceptor (clj)
(source)function
(format-response-interceptor)
(format-response-interceptor default-muuntaja)
Interceptor for response formatting.
Encodes the response body using the `:muuntaja/response` key in request if the response
doesn't have `Content-Type` header already set.
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.