(format-interceptor)
(format-interceptor default-muuntaja)
Interceptor for content-negotiation, request and response formatting.
Negotiates a request body based on Content-Type
header and response body based on
Accept
, Accept-Charset
headers. Publishes the negotiation results as :muuntaja/request
and :muuntaja/response
keys into the request.
Decodes the request body into :body-params
using the :muuntaja/request
key in request
if the :body-params
doesn't already exist.
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. |
Interceptor for content-negotiation, request and response formatting. Negotiates a request body based on `Content-Type` header and response body based on `Accept`, `Accept-Charset` headers. Publishes the negotiation results as `:muuntaja/request` and `:muuntaja/response` keys into the request. Decodes the request body into `:body-params` using the `:muuntaja/request` key in request if the `:body-params` doesn't already exist. 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.
(format-negotiate-interceptor)
(format-negotiate-interceptor default-muuntaja)
Interceptor for content-negotiation.
Negotiates a request body based on Content-Type
header and response body based on
Accept
, Accept-Charset
headers. Publishes the negotiation results as :muuntaja/request
and :muuntaja/response
keys into the request.
Optionally takes a default muuntaja instance as argument.
key | description |
---|---|
:muuntaja | muuntaja.core/Muuntaja instance, does not mount if not set. |
Interceptor for content-negotiation. Negotiates a request body based on `Content-Type` header and response body based on `Accept`, `Accept-Charset` headers. Publishes the negotiation results as `:muuntaja/request` and `:muuntaja/response` keys into the request. Optionally takes a default muuntaja instance as argument. | key | description | | -------------|-------------| | `:muuntaja` | `muuntaja.core/Muuntaja` instance, does not mount if not set.
(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. |
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.
(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. |
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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close