Liking cljdoc? Tell your friends :D

metabase.middleware.misc

Misc Ring middleware.

Misc Ring middleware.
raw docstring

add-content-typeclj

(add-content-type handler)

Add an appropriate Content-Type header to response if it doesn't already have one. Most responses should already have one, so this is a fallback for ones that for one reason or another do not.

Add an appropriate Content-Type header to response if it doesn't already have one. Most responses should already
have one, so this is a fallback for ones that for one reason or another do not.
sourceraw docstring

bind-user-localeclj

(bind-user-locale handler)

Middleware that binds locale info for the current User. (This is basically a copy of the puppetlabs.i18n.core/locale-negotiator, but reworked to handle async-style requests as well.)

Middleware that binds locale info for the current User. (This is basically a copy of the
`puppetlabs.i18n.core/locale-negotiator`, but reworked to handle async-style requests as well.)
sourceraw docstring

disable-streaming-bufferingclj

(disable-streaming-buffering handler)

Tell nginx not to batch streaming responses -- otherwise the keepalive bytes aren't written and the entire purpose is defeated. See https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache

Tell nginx not to batch streaming responses -- otherwise the keepalive bytes aren't written and
the entire purpose is defeated. See https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache
sourceraw docstring

maybe-set-site-urlclj

(maybe-set-site-url handler)

Middleware to set the site-url Setting if it's unset the first time a request is made.

Middleware to set the `site-url` Setting if it's unset the first time a request is made.
sourceraw docstring

wrap-gzipclj

(wrap-gzip handler)

Middleware that GZIPs response if client can handle it. This is basically the same as the version in ring.middleware.gzip, but handles async requests as well.

Middleware that GZIPs response if client can handle it. This is basically the same as the version in
`ring.middleware.gzip`, but handles async requests as well.
sourceraw docstring

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

× close