diff options
author | Zhidao HONG <z.hong@f5.com> | 2024-08-16 00:29:16 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2024-08-20 09:17:24 +0800 |
commit | debd61c3a4f7e5817bf842c2166217929ef80c88 (patch) | |
tree | 037909415bcd46a43a73ab89ca698ab74687243d /src/nxt_nvbcq.h | |
parent | 57f939569d3c3db11d8bbc7dd0b45693cbe3344e (diff) | |
download | unit-debd61c3a4f7e5817bf842c2166217929ef80c88.tar.gz unit-debd61c3a4f7e5817bf842c2166217929ef80c88.tar.bz2 |
http: Add "if" option to the "match" object
This feature allows users to specify conditions to check if one
route is matched. It is used the same way as the "if" option in
the access log.
Example:
{
"match": {
"if": "`${headers['User-Agent'].split('/')[0] == 'curl'}`"
},
"action": {
"return": 204
}
}
Diffstat (limited to 'src/nxt_nvbcq.h')
0 files changed, 0 insertions, 0 deletions