The tulip.pkg.gzip module exports the gzip package.


  • tulip.pkg.middleware


  • level: number = compression level, 1(worst) to 9(best).

#Registered Middleware

The following middleware are registered and can be referenced by name in the configuration.


Adds a vary by Accept-Encoding header to the response, and if the request's Accept-Encoding accepts gzip, enables compression of the response's body. Doing so will set the response's Content-Encoding to gzip and Transfer-Encoding to chunked.

Back to index

About this wiki

commit 3ebfbd288b8e5c95fdf8ce2027a0e94cfa1c8976
Author: Martin Angers <martin.n.angers@gmail.com>
Date:   2021-02-25T14:07:12-05:00

Update to reflect Request:validate_body
Clone this wiki
https://git.sr.ht/~mna/tulip-wiki (read-only)
git@git.sr.ht:~mna/tulip-wiki (read/write)