Liking cljdoc? Tell your friends :D

ring.adapter.undertow.middleware.gzip


wrap-with-gzip-handlerclj

(wrap-with-gzip-handler handler)

Wraps an HttpHandler with Undertow's EncodingHandler configured for gzip compression.

Only compresses responses that:

  • Are at least 1KB in size
  • Have compressible content types (text/, application/json, application/javascript, application/xml, application/+xml, image/svg+xml)
  • Client accepts gzip encoding via Accept-Encoding header

Returns an HttpHandler that automatically compresses eligible responses with gzip.

Wraps an HttpHandler with Undertow's EncodingHandler configured for gzip compression.

Only compresses responses that:
- Are at least 1KB in size
- Have compressible content types (text/*, application/json, application/javascript, 
  application/xml, application/*+xml, image/svg+xml)
- Client accepts gzip encoding via Accept-Encoding header

Returns an HttpHandler that automatically compresses eligible responses with gzip.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close