Liking cljdoc? Tell your friends :D

reitit.ring.middleware.muuntaja


format-middlewareclj

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.

keydescription
:muuntajamuuntaja.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-middlewareclj

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.

keydescription
:muuntajamuuntaja.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-middlewareclj

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.

keydescription
:muuntajamuuntaja.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-middlewareclj

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.

keydescription
:muuntajamuuntaja.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