Liking cljdoc? Tell your friends :D

reitit.ring.middleware.muuntaja


format-middleware

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

key description
:muuntaja muuntaja.core/Muuntaja instance, does not mount if not set.
Middleware 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.

| key          | description |
| -------------|-------------|
| `:muuntaja`  | `muuntaja.core/Muuntaja` instance, does not mount if not set.
sourceraw docstring

format-negotiate-middleware

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

key description
:muuntaja muuntaja.core/Muuntaja instance, does not mount if not set.
Middleware 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.

| key          | description |
| -------------|-------------|
| `:muuntaja`  | `muuntaja.core/Muuntaja` instance, does not mount if not set.
sourceraw docstring

format-request-middleware

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

key description
:muuntaja muuntaja.core/Muuntaja instance, does not mount if not set.
Middleware 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.

| key          | description |
| -------------|-------------|
| `:muuntaja`  | `muuntaja.core/Muuntaja` instance, does not mount if not set.
sourceraw docstring

format-response-middleware

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

key description
:muuntaja muuntaja.core/Muuntaja instance, does not mount if not set.
Middleware 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.

| key          | description |
| -------------|-------------|
| `:muuntaja`  | `muuntaja.core/Muuntaja` instance, does not mount if not set.
sourceraw docstring

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

× close