summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@nginx.com>2023-07-19 14:22:21 +0200
committerAlejandro Colomar <alx@kernel.org>2023-10-25 13:37:58 +0200
commitfd4f4e4c5943c3bcd09e3bdcbeefc263aa2f1937 (patch)
tree5c91e83b03f5dd9b975fadfa2cb2cf6e03b653a2 /src/nxt_http.h
parentddb7d61f6173c2f191f4eddc15f1f912e940e42c (diff)
downloadunit-fd4f4e4c5943c3bcd09e3bdcbeefc263aa2f1937.tar.gz
unit-fd4f4e4c5943c3bcd09e3bdcbeefc263aa2f1937.tar.bz2
HTTP: compress: added "compress" action.
There are still no supported encodings. This is just infrastructure for the next commits, which will add gzip compression. Signed-off-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r--src/nxt_http.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index 300c197d..94df6f2e 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -10,6 +10,9 @@
#include <nxt_regex.h>
+typedef struct nxt_http_compress_conf_s nxt_http_compress_conf_t;
+
+
typedef enum {
NXT_HTTP_UNSET = -1,
NXT_HTTP_INVALID = 0,
@@ -233,6 +236,7 @@ typedef struct nxt_http_route_addr_rule_s nxt_http_route_addr_rule_t;
typedef struct {
nxt_conf_value_t *rewrite;
nxt_conf_value_t *set_headers;
+ nxt_conf_value_t *compress;
nxt_conf_value_t *pass;
nxt_conf_value_t *ret;
nxt_conf_value_t *location;
@@ -262,6 +266,7 @@ struct nxt_http_action_s {
nxt_tstr_t *rewrite;
nxt_array_t *set_headers; /* of nxt_http_field_t */
+ nxt_http_compress_conf_t *compress;
nxt_http_action_t *fallback;
};