summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_compress_gzip.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-12-19HTTP: compress: gzip: calculating wbits and memlevel dynamically.alx-gzipAlejandro Colomar1-4/+32
When the content length is small, optimize zlib for low memory usage. Conversely, when the content length is large, use a similar amount of memory within zlib, as it will improve compression, and won't hurt significantly. Signed-off-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-12-19HTTP: compress: checking $header_accept_encoding.Alejandro Colomar1-0/+11
Signed-off-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-12-19HTTP: compress: added "mime_types" rule.Alejandro Colomar1-0/+10
Signed-off-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-12-19HTTP: compress: added configurable threshold for Content-Length.Alejandro Colomar1-6/+3
With this, short responses, that is, responses with a body of up to content_length_threshold bytes, won't be compressed. The default value is 20, as in NGINX. Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-10-25Auto: zlib: added --no-zlib.Alejandro Colomar1-2/+12
Related to: HTTP: compress: gzip Signed-off-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-10-25HTTP: compress: added configurable "level" of compression.Alejandro Colomar1-2/+6
Signed-off-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-10-25HTTP: compress: added "encoding": "gzip".Alejandro Colomar1-0/+179
Signed-off-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>