Misc Ring middleware.
Misc Ring middleware.
(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.
(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.)
(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
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close