comparison 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
comparison
equal deleted inserted replaced
7438:134343f2a877 7439:5efc23d83bc2
211 char *ngx_http_set_complex_value_slot(ngx_conf_t *cf, ngx_command_t *cmd, 211 char *ngx_http_set_complex_value_slot(ngx_conf_t *cf, ngx_command_t *cmd,
212 void *conf); 212 void *conf);
213 213
214 214
215 ngx_int_t ngx_http_test_predicates(ngx_http_request_t *r, 215 ngx_int_t ngx_http_test_predicates(ngx_http_request_t *r,
216 ngx_array_t *predicates);
217 ngx_int_t ngx_http_test_required_predicates(ngx_http_request_t *r,
216 ngx_array_t *predicates); 218 ngx_array_t *predicates);
217 char *ngx_http_set_predicate_slot(ngx_conf_t *cf, ngx_command_t *cmd, 219 char *ngx_http_set_predicate_slot(ngx_conf_t *cf, ngx_command_t *cmd,
218 void *conf); 220 void *conf);
219 221
220 ngx_uint_t ngx_http_script_variables_count(ngx_str_t *value); 222 ngx_uint_t ngx_http_script_variables_count(ngx_str_t *value);