Liking cljdoc? Tell your friends :D

muuntaja.interceptor


exception-interceptorclj

(exception-interceptor)
(exception-interceptor on-exception)

Interceptor that catches exceptions of type :muuntaja/decode and invokes a 3-arity callback [^Exception e format request] which returns a response.

Interceptor that catches exceptions of type `:muuntaja/decode`
and invokes a 3-arity callback [^Exception e format request] which
returns a response.
raw docstring

format-interceptorclj

(format-interceptor)
(format-interceptor prototype)

Interceptor that negotiates a request body based on accept, accept-charset and content-type headers and decodes the body with an attached Muuntaja instance into :body-params. Encodes also the response body with the same Muuntaja instance based on the negotiation information or override information provided by the handler.

Takes a pre-configured Muuntaja or options maps an argument. See https://github.com/metosin/muuntaja for all options and defaults.

Interceptor that negotiates a request body based on accept, accept-charset
and content-type headers and decodes the body with an attached Muuntaja
instance into `:body-params`. Encodes also the response body with the same
Muuntaja instance based on the negotiation information or override information
provided by the handler.

Takes a pre-configured Muuntaja or options maps an argument.
See https://github.com/metosin/muuntaja for all options and defaults.
raw docstring

format-negotiate-interceptorclj

(format-negotiate-interceptor)
(format-negotiate-interceptor prototype)

Interceptor that negotiates a request body based on accept, accept-charset and content-type headers with an attached Muuntaja instance. Injects negotiation results into request for format-request interceptor to use.

Takes a pre-configured Muuntaja or options maps an argument. See https://github.com/metosin/muuntaja for all options and defaults.

Interceptor that negotiates a request body based on accept, accept-charset
and content-type headers with an attached Muuntaja instance. Injects negotiation
results into request for `format-request` interceptor to use.

Takes a pre-configured Muuntaja or options maps an argument.
See https://github.com/metosin/muuntaja for all options and defaults.
raw docstring

format-request-interceptorclj

(format-request-interceptor)
(format-request-interceptor prototype)

Interceptor that decodes the request body with an attached Muuntaja instance into :body-params based on the negotiation information provided by format-negotiate interceptor.

Takes a pre-configured Muuntaja or options maps an argument. See https://github.com/metosin/muuntaja for all options and defaults.

Interceptor that decodes the request body with an attached Muuntaja
instance into `:body-params` based on the negotiation information provided
by `format-negotiate` interceptor.

Takes a pre-configured Muuntaja or options maps an argument.
See https://github.com/metosin/muuntaja for all options and defaults.
raw docstring

format-response-interceptorclj

(format-response-interceptor)
(format-response-interceptor prototype)

Interceptor that encodes also the response body with the attached Muuntaja instance, based on request negotiation information provided by format-negotiate interceptor or override information provided by the handler.

Takes a pre-configured Muuntaja or options maps an argument. See https://github.com/metosin/muuntaja for all options and defaults.

Interceptor that encodes also the response body with the attached
Muuntaja instance, based on request negotiation information provided by
`format-negotiate` interceptor or override information provided by the handler.

Takes a pre-configured Muuntaja or options maps an argument.
See https://github.com/metosin/muuntaja for all options and defaults.
raw docstring

params-interceptorclj

(params-interceptor)

Interceptor that merges request :body-params into :params.

Interceptor that merges request `:body-params` into `:params`.
raw docstring

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

× close