diff options
| author | Andrew Clayton <a.clayton@nginx.com> | 2024-11-29 15:46:11 +0000 |
|---|---|---|
| committer | Andrew Clayton <a.clayton@nginx.com> | 2024-12-04 20:52:06 +0000 |
| commit | ab666231170edfe2eaeafe568b933c5150f58db0 (patch) | |
| tree | 4960e9ea7c8ae3af76728494e12aa73277f8c380 /src/nxt_http_compression.h | |
| parent | 5237c85147c2b342b9dd2e152f027597ef578646 (diff) | |
| download | unit-ab666231170edfe2eaeafe568b933c5150f58db0.tar.gz unit-ab666231170edfe2eaeafe568b933c5150f58db0.tar.bz2 | |
http: Compress static responses
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_http_compression.h')
| -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 c88e4033..9dad11da 100644 --- a/src/nxt_http_compression.h +++ b/src/nxt_http_compression.h @@ -91,6 +91,9 @@ extern const nxt_http_comp_operations_t nxt_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, |
