diff options
author | Zhidao HONG <z.hong@f5.com> | 2023-06-19 16:29:22 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2023-06-19 16:29:22 +0800 |
commit | c61ccec7b4926476b2188092e25990e433332688 (patch) | |
tree | 191c14c58ae229e6060644eafce25a82040a2bbc /src/nxt_tstr.h | |
parent | 18d3637e4bffd5fff09091a536dca3fdecc931d7 (diff) | |
download | unit-c61ccec7b4926476b2188092e25990e433332688.tar.gz unit-c61ccec7b4926476b2188092e25990e433332688.tar.bz2 |
Variables refactoring.
This commit is to reimplement the variables with an unknown field
such as $header_{name} to make the parsing more generic,
it's a preparation for supporting response header variables.
Diffstat (limited to 'src/nxt_tstr.h')
-rw-r--r-- | src/nxt_tstr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_tstr.h b/src/nxt_tstr.h index afa7f56d..3e842f81 100644 --- a/src/nxt_tstr.h +++ b/src/nxt_tstr.h @@ -13,14 +13,14 @@ typedef struct nxt_tstr_s nxt_tstr_t; typedef struct nxt_tstr_query_s nxt_tstr_query_t; -typedef struct { +struct nxt_tstr_state_s { nxt_mp_t *pool; - nxt_array_t *var_fields; + nxt_array_t *var_refs; #if (NXT_HAVE_NJS) nxt_js_conf_t *jcf; #endif uint8_t test; /* 1 bit */ -} nxt_tstr_state_t; +}; typedef struct { |