summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2023-08-09 14:36:16 +0800
committerZhidao HONG <z.hong@f5.com>2023-08-09 14:36:16 +0800
commit9f04d6db630a22658581cbe7a9d28ecdb13d8de9 (patch)
treec5a255f47699c2b14efe4ea808d926c1168c9b16 /src/nxt_http.h
parent497f08d15fc040b3484562cf95dbe242a85fe0df (diff)
downloadunit-9f04d6db630a22658581cbe7a9d28ecdb13d8de9.tar.gz
unit-9f04d6db630a22658581cbe7a9d28ecdb13d8de9.tar.bz2
HTTP: stored matched action in nxt_http_request_t.
No functional changes.
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r--src/nxt_http.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index 08e1fcbe..fc47faa8 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -173,6 +173,7 @@ struct nxt_http_request_s {
nxt_tstr_query_t *tstr_query;
nxt_tstr_cache_t tstr_cache;
+ nxt_http_action_t *action;
void *req_rpc_data;
#if (NXT_HAVE_REGEX)
@@ -382,8 +383,7 @@ nxt_int_t nxt_upstreams_joint_create(nxt_router_temp_conf_t *tmcf,
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_http_action_t *action);
+nxt_int_t nxt_http_rewrite(nxt_task_t *task, 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);