Liking cljdoc? Tell your friends :D

ring.middleware.gzip


accepts-gzip?clj

(accepts-gzip? {:keys [headers]})

Tests if the request indicates that the client can accept a gzipped response

Tests if the request indicates that the client can accept a gzipped response
sourceraw docstring

content-encoding?clj

(content-encoding? {:keys [headers]})

Tests if the provided response has a content-encoding header

Tests if the provided response has a content-encoding header
sourceraw docstring

gzip-responseclj

(gzip-response req resp)
source

gzipped-responseclj

(gzipped-response resp)
source

min-lengthclj

source

piped-gzipped-input-streamclj

(piped-gzipped-input-stream in)
source

set-response-headersclj

(set-response-headers headers)
source

supported-response?clj

(supported-response? {:keys [body status] :as resp})
source

supported-status?clj

source

wrap-gzipclj

(wrap-gzip handler)

Ring middleware that GZIPs response if client can handle it.

Ring middleware that GZIPs response if client can handle it.
sourceraw docstring

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

× close