summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2021-04-22 13:13:06 +0800
committerZhidao HONG <z.hong@f5.com>2021-04-22 13:13:06 +0800
commit113afb09ea7ddeebf2376cf6df3af212705e6128 (patch)
treed39074cf006ed99d03ee97503d70f8981405deec /src/nxt_http.h
parentf90754f84a375d5183ed6883862d19dfd417225a (diff)
downloadunit-113afb09ea7ddeebf2376cf6df3af212705e6128.tar.gz
unit-113afb09ea7ddeebf2376cf6df3af212705e6128.tar.bz2
Router: grouped app and share fields in nxt_http_action_t.
This is a prerequisite for further introduction of openat2() features. No functional changes.
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r--src/nxt_http.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index e30bfeb4..2aa108ec 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -206,16 +206,22 @@ struct nxt_http_action_s {
nxt_http_action_t *action);
union {
nxt_http_route_t *route;
- nxt_app_t *application;
- nxt_http_action_t *fallback;
nxt_upstream_t *upstream;
uint32_t upstream_number;
nxt_http_status_t return_code;
nxt_var_t *var;
+
+ struct {
+ nxt_app_t *application;
+ nxt_int_t target;
+ } app;
+
+ struct {
+ nxt_http_action_t *fallback;
+ } share;
} u;
nxt_str_t name;
- nxt_int_t target;
};