summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_script.h
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2019-01-17 14:31:04 +0300
committerVladimir Homutov <vl@nginx.com>2019-01-17 14:31:04 +0300
commitb6b39b2fb9c66f2a05153bbc4fa770b9e3850491 (patch)
tree0b11ad1a58275f13466322753024f8cbe94b0c3f /src/http/ngx_http_script.h
parentde20d73ec58289c80e4708efccb02596c39479f0 (diff)
downloadnginx-b6b39b2fb9c66f2a05153bbc4fa770b9e3850491.tar.gz
nginx-b6b39b2fb9c66f2a05153bbc4fa770b9e3850491.tar.bz2
Added the ngx_http_test_required_predicates() function.
In contrast to ngx_http_test_predicates(), it requires all values to be non-empty and not equal to "0".
Diffstat (limited to 'src/http/ngx_http_script.h')
-rw-r--r--src/http/ngx_http_script.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_script.h b/src/http/ngx_http_script.h
index a5116d747..25bb6d73f 100644
--- a/src/http/ngx_http_script.h
+++ b/src/http/ngx_http_script.h
@@ -214,6 +214,8 @@ char *ngx_http_set_complex_value_slot(ngx_conf_t *cf, ngx_command_t *cmd,
ngx_int_t ngx_http_test_predicates(ngx_http_request_t *r,
ngx_array_t *predicates);
+ngx_int_t ngx_http_test_required_predicates(ngx_http_request_t *r,
+ ngx_array_t *predicates);
char *ngx_http_set_predicate_slot(ngx_conf_t *cf, ngx_command_t *cmd,
void *conf);