diff options
author | Zhidao HONG <z.hong@f5.com> | 2021-09-07 21:13:44 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2021-09-07 21:13:44 +0800 |
commit | a336928e1027af92d0c9bb2ccb369a3f9b53abae (patch) | |
tree | 24062e6f2e2fafbc665851797f5ec9b64c68b150 /src/nxt_http.h | |
parent | 9c1894bf7791d44c6ebd9a5637ccde10bc5da29c (diff) | |
download | unit-a336928e1027af92d0c9bb2ccb369a3f9b53abae.tar.gz unit-a336928e1027af92d0c9bb2ccb369a3f9b53abae.tar.bz2 |
Router: refactored variable pass.
Since the "pass" option supports both strings and variables, a generic
nxt_var_t structure can be used in the configuration phase, and the "name"
field in actions is redundant.
No functional changes.
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r-- | src/nxt_http.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h index 3bc2fd61..332ac932 100644 --- a/src/nxt_http.h +++ b/src/nxt_http.h @@ -226,9 +226,9 @@ struct nxt_http_action_s { nxt_upstream_t *upstream; uint32_t upstream_number; nxt_var_t *var; + nxt_str_t *pass; } u; - nxt_str_t name; nxt_http_action_t *fallback; }; @@ -313,7 +313,7 @@ nxt_int_t nxt_http_request_content_length(void *ctx, nxt_http_field_t *field, nxt_http_routes_t *nxt_http_routes_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf, nxt_conf_value_t *routes_conf); nxt_http_action_t *nxt_http_action_create(nxt_task_t *task, - nxt_router_temp_conf_t *tmcf, nxt_str_t *name); + nxt_router_temp_conf_t *tmcf, nxt_str_t *pass); nxt_int_t nxt_http_routes_resolve(nxt_task_t *task, nxt_router_temp_conf_t *tmcf); nxt_int_t nxt_http_pass_segments(nxt_mp_t *mp, nxt_str_t *pass, |