summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_compression.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2024-12-04http: Compress application responsescomprAndrew Clayton1-0/+81
Co-authored-by: Alejandro Colomar <alx@kernel.org> Signed-off-by: Alejandro Colomar <alx@kernel.org> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-12-04http: Compress static responsesAndrew Clayton1-0/+103
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-11-29http: compress: Add a couple of helper functionsAndrew Clayton1-0/+30
This adds two helper function that will be used in subsequent commits. nxt_http_comp_compress() does the actual compression. nxt_http_comp_bound() returns the maximum compressed size for the given size. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-11-29http: Add support for brotli compressionAndrew Clayton1-0/+12
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-11-29http: Add support for zstd compressionAndrew Clayton1-0/+12
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-11-29http: Add zlib compression supportAndrew Clayton1-0/+20
This adds support for both deflate & gzip compressors. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-11-29http: Add core http compression codeAndrew Clayton1-0/+519
This is the initial step to enabling HTTP compression on both static and application responses. This code itself doesn't do any actual compression, that will come in subsequent commits. It just contains the core functions for initialising structures that describe the available compressors and functions for checking if compression should be done depending on various criteria. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>