diff options
author | Zhidao HONG <z.hong@f5.com> | 2023-08-09 14:37:16 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2023-08-09 14:37:16 +0800 |
commit | a28bef097cd63da3bbb375ef0283e65be41a88ff (patch) | |
tree | 8553e74c050a9747bdba928cbaec82ee6d15cb5d /src/nxt_http.h | |
parent | 9f04d6db630a22658581cbe7a9d28ecdb13d8de9 (diff) | |
download | unit-a28bef097cd63da3bbb375ef0283e65be41a88ff.tar.gz unit-a28bef097cd63da3bbb375ef0283e65be41a88ff.tar.bz2 |
HTTP: controlling response headers support.
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r-- | src/nxt_http.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h index fc47faa8..e812bd0d 100644 --- a/src/nxt_http.h +++ b/src/nxt_http.h @@ -228,6 +228,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 *pass; nxt_conf_value_t *ret; nxt_conf_value_t *location; @@ -256,6 +257,7 @@ struct nxt_http_action_s { } u; nxt_tstr_t *rewrite; + nxt_array_t *set_headers; /* of nxt_http_field_t */ nxt_http_action_t *fallback; }; @@ -385,6 +387,10 @@ nxt_int_t nxt_http_rewrite_init(nxt_router_conf_t *rtcf, nxt_http_action_t *action, nxt_http_action_conf_t *acf); nxt_int_t nxt_http_rewrite(nxt_task_t *task, nxt_http_request_t *r); +nxt_int_t nxt_http_set_headers_init(nxt_router_conf_t *rtcf, + nxt_http_action_t *action, nxt_http_action_conf_t *acf); +nxt_int_t nxt_http_set_headers(nxt_http_request_t *r); + nxt_int_t nxt_http_return_init(nxt_router_conf_t *rtcf, nxt_http_action_t *action, nxt_http_action_conf_t *acf); |