diff options
| author | Andrew Clayton <a.clayton@nginx.com> | 2024-11-29 15:46:11 +0000 |
|---|---|---|
| committer | Andrew Clayton <a.clayton@nginx.com> | 2025-04-14 18:11:53 +0100 |
| commit | adaecb6f9efcf435e09c57ecb095f8109d17a817 (patch) | |
| tree | 3d1b4694da8c9c831ad1f414349fbfb6ac4a5603 /src/nxt_http_compression.h | |
| parent | 523d42269ff89490b9dad25565121ea5e7696881 (diff) | |
| download | unit-adaecb6f9efcf435e09c57ecb095f8109d17a817.tar.gz unit-adaecb6f9efcf435e09c57ecb095f8109d17a817.tar.bz2 | |
http: Compress static responses
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '')
| -rw-r--r-- | src/nxt_http_compression.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_http_compression.h b/src/nxt_http_compression.h index c2007f8e..9f3567c1 100644 --- a/src/nxt_http_compression.h +++ b/src/nxt_http_compression.h @@ -90,6 +90,9 @@ extern const nxt_http_comp_operations_t nxt_http_comp_brotli_ops; #endif +extern nxt_int_t nxt_http_comp_compress_static_response(nxt_task_t *task, + nxt_file_t **f, nxt_file_info_t *fi, size_t static_buf_len, + size_t *out_total); extern bool nxt_http_comp_wants_compression(void); extern bool nxt_http_comp_compressor_is_valid(const nxt_str_t *token); extern nxt_int_t nxt_http_comp_check_compression(nxt_task_t *task, |
