Back

format-negotiate-interceptor (clj)

(source)

function

(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.

Examples