diff src/http/ngx_http_script.h @ 7439:5efc23d83bc2

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".
author Vladimir Homutov <vl@nginx.com>
date Thu, 17 Jan 2019 14:31:04 +0300
parents e4590dfd97ff
children b82162b8496a
line wrap: on
line diff
--- 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(ng
 
 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);