diff options
author | Zhidao HONG <z.hong@f5.com> | 2022-06-20 13:16:25 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2022-06-20 13:16:25 +0800 |
commit | 14dfa439eed1983693d7d128cc51c5e738a487d7 (patch) | |
tree | 771e4648406614b53c9195c4e66c78bf84520d27 /src/nxt_router.h | |
parent | fd38e69c3db9cda55fb24401c9eedbe18a05e962 (diff) | |
download | unit-14dfa439eed1983693d7d128cc51c5e738a487d7.tar.gz unit-14dfa439eed1983693d7d128cc51c5e738a487d7.tar.bz2 |
Router: introduced nxt_http_forward_t.
This makes the replacement of forwarded request header
like client_ip and protocol more generic.
It's a prerequirement for protocol replacement.
No functional changes.
Diffstat (limited to 'src/nxt_router.h')
-rw-r--r-- | src/nxt_router.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_router.h b/src/nxt_router.h index 7e337d27..b97d5c20 100644 --- a/src/nxt_router.h +++ b/src/nxt_router.h @@ -18,7 +18,7 @@ typedef struct nxt_http_request_s nxt_http_request_t; typedef struct nxt_http_action_s nxt_http_action_t; typedef struct nxt_http_routes_s nxt_http_routes_t; -typedef struct nxt_http_client_ip_s nxt_http_client_ip_t; +typedef struct nxt_http_forward_s nxt_http_forward_t; typedef struct nxt_upstream_s nxt_upstream_t; typedef struct nxt_upstreams_s nxt_upstreams_t; typedef struct nxt_router_access_log_s nxt_router_access_log_t; @@ -197,7 +197,7 @@ typedef struct { uint8_t discard_unsafe_fields; /* 1 bit */ - nxt_http_client_ip_t *client_ip; + nxt_http_forward_t *client_ip; #if (NXT_TLS) nxt_tls_conf_t *tls; |