v 415 core/nginx.c u_char *p, *v, *inherited; v 435 core/nginx.c for (p = inherited, v = p; *p; p++) { v 437 core/nginx.c s = ngx_atoi(v, p - v); v 442 core/nginx.c " of the variable", v); v 446 core/nginx.c v = p + 1; v 154 core/ngx_string.c ngx_str_t *v; v 232 core/ngx_string.c v = va_arg(args, ngx_str_t *); v 234 core/ngx_string.c len = ngx_min(((size_t) (last - buf)), v->len); v 235 core/ngx_string.c buf = ngx_cpymem(buf, v->data, len); v 58 http/modules/ngx_http_browser_module.c ngx_http_variable_value_t *v, uintptr_t data); v 60 http/modules/ngx_http_browser_module.c ngx_http_variable_value_t *v, uintptr_t data); v 231 http/modules/ngx_http_browser_module.c ngx_http_browser_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 242 http/modules/ngx_http_browser_module.c *v = *cf->modern_browser_value; v 247 http/modules/ngx_http_browser_module.c *v = *cf->ancient_browser_value; v 251 http/modules/ngx_http_browser_module.c *v = ngx_http_variable_null_value; v 385 http/modules/ngx_http_browser_module.c ngx_http_msie_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 389 http/modules/ngx_http_browser_module.c *v = ngx_http_variable_true_value; v 393 http/modules/ngx_http_browser_module.c *v = ngx_http_variable_null_value; v 402 http/modules/ngx_http_browser_module.c ngx_http_variable_t *v; v 406 http/modules/ngx_http_browser_module.c v = ngx_http_add_variable(cf, &var->name, NGX_HTTP_VAR_CHANGEABLE); v 407 http/modules/ngx_http_browser_module.c if (v == NULL) { v 411 http/modules/ngx_http_browser_module.c v->get_handler = var->handler; v 412 http/modules/ngx_http_browser_module.c v->data = var->data; v 146 http/modules/ngx_http_fastcgi_module.c ngx_http_variable_value_t *v, uintptr_t data); v 148 http/modules/ngx_http_fastcgi_module.c ngx_http_variable_value_t *v, uintptr_t data); v 1925 http/modules/ngx_http_fastcgi_module.c ngx_http_variable_t *var, *v; v 1927 http/modules/ngx_http_fastcgi_module.c for (v = ngx_http_fastcgi_vars; v->name.len; v++) { v 1928 http/modules/ngx_http_fastcgi_module.c var = ngx_http_add_variable(cf, &v->name, v->flags); v 1933 http/modules/ngx_http_fastcgi_module.c var->get_handler = v->get_handler; v 1934 http/modules/ngx_http_fastcgi_module.c var->data = v->data; v 2468 http/modules/ngx_http_fastcgi_module.c ngx_http_variable_value_t *v, uintptr_t data) v 2485 http/modules/ngx_http_fastcgi_module.c v->len = f->script_name.len; v 2486 http/modules/ngx_http_fastcgi_module.c v->valid = 1; v 2487 http/modules/ngx_http_fastcgi_module.c v->no_cacheable = 0; v 2488 http/modules/ngx_http_fastcgi_module.c v->not_found = 0; v 2489 http/modules/ngx_http_fastcgi_module.c v->data = f->script_name.data; v 2494 http/modules/ngx_http_fastcgi_module.c v->len = f->script_name.len + flcf->index.len; v 2496 http/modules/ngx_http_fastcgi_module.c v->data = ngx_pnalloc(r->pool, v->len); v 2497 http/modules/ngx_http_fastcgi_module.c if (v->data == NULL) { v 2501 http/modules/ngx_http_fastcgi_module.c p = ngx_copy(v->data, f->script_name.data, f->script_name.len); v 2510 http/modules/ngx_http_fastcgi_module.c ngx_http_variable_value_t *v, uintptr_t data) v 2523 http/modules/ngx_http_fastcgi_module.c v->len = f->path_info.len; v 2524 http/modules/ngx_http_fastcgi_module.c v->valid = 1; v 2525 http/modules/ngx_http_fastcgi_module.c v->no_cacheable = 0; v 2526 http/modules/ngx_http_fastcgi_module.c v->not_found = 0; v 2527 http/modules/ngx_http_fastcgi_module.c v->data = f->path_info.data; v 158 http/modules/ngx_http_geo_module.c ngx_http_geo_cidr_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 168 http/modules/ngx_http_geo_module.c *v = *vv; v 171 http/modules/ngx_http_geo_module.c "http geo: %v", v); v 178 http/modules/ngx_http_geo_module.c ngx_http_geo_range_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 187 http/modules/ngx_http_geo_module.c *v = *ctx->u.high.default_value; v 198 http/modules/ngx_http_geo_module.c *v = *range->value; v 205 http/modules/ngx_http_geo_module.c "http geo: %v", v); v 259 http/modules/ngx_http_geo_module.c ngx_http_variable_value_t *v; v 273 http/modules/ngx_http_geo_module.c v = ngx_http_get_flushed_variable(r, ctx->index); v 275 http/modules/ngx_http_geo_module.c if (v == NULL || v->not_found) { v 283 http/modules/ngx_http_geo_module.c "http geo started: %v", v); v 285 http/modules/ngx_http_geo_module.c return ntohl(ngx_inet_addr(v->data, v->len)); v 30 http/modules/ngx_http_geoip_module.c ngx_http_variable_value_t *v, uintptr_t data); v 32 http/modules/ngx_http_geoip_module.c ngx_http_variable_value_t *v, uintptr_t data); v 34 http/modules/ngx_http_geoip_module.c ngx_http_variable_value_t *v, uintptr_t data); v 36 http/modules/ngx_http_geoip_module.c ngx_http_variable_value_t *v, uintptr_t data); v 38 http/modules/ngx_http_geoip_module.c ngx_http_variable_value_t *v, uintptr_t data); v 169 http/modules/ngx_http_geoip_module.c ngx_http_variable_value_t *v, uintptr_t data) v 198 http/modules/ngx_http_geoip_module.c v->len = ngx_strlen(val); v 199 http/modules/ngx_http_geoip_module.c v->valid = 1; v 200 http/modules/ngx_http_geoip_module.c v->no_cacheable = 0; v 201 http/modules/ngx_http_geoip_module.c v->not_found = 0; v 202 http/modules/ngx_http_geoip_module.c v->data = (u_char *) val; v 208 http/modules/ngx_http_geoip_module.c v->not_found = 1; v 216 http/modules/ngx_http_geoip_module.c ngx_http_variable_value_t *v, uintptr_t data) v 233 http/modules/ngx_http_geoip_module.c v->data = ngx_pnalloc(r->pool, len); v 234 http/modules/ngx_http_geoip_module.c if (v->data == NULL) { v 239 http/modules/ngx_http_geoip_module.c ngx_memcpy(v->data, val, len); v 241 http/modules/ngx_http_geoip_module.c v->len = len; v 242 http/modules/ngx_http_geoip_module.c v->valid = 1; v 243 http/modules/ngx_http_geoip_module.c v->no_cacheable = 0; v 244 http/modules/ngx_http_geoip_module.c v->not_found = 0; v 256 http/modules/ngx_http_geoip_module.c v->not_found = 1; v 264 http/modules/ngx_http_geoip_module.c ngx_http_variable_value_t *v, uintptr_t data) v 284 http/modules/ngx_http_geoip_module.c v->data = ngx_pnalloc(r->pool, len); v 285 http/modules/ngx_http_geoip_module.c if (v->data == NULL) { v 289 http/modules/ngx_http_geoip_module.c ngx_memcpy(v->data, val, len); v 291 http/modules/ngx_http_geoip_module.c v->len = len; v 292 http/modules/ngx_http_geoip_module.c v->valid = 1; v 293 http/modules/ngx_http_geoip_module.c v->no_cacheable = 0; v 294 http/modules/ngx_http_geoip_module.c v->not_found = 0; v 300 http/modules/ngx_http_geoip_module.c v->not_found = 1; v 308 http/modules/ngx_http_geoip_module.c ngx_http_variable_value_t *v, uintptr_t data) v 315 http/modules/ngx_http_geoip_module.c v->not_found = 1; v 319 http/modules/ngx_http_geoip_module.c v->data = ngx_pnalloc(r->pool, NGX_INT64_LEN + 5); v 320 http/modules/ngx_http_geoip_module.c if (v->data == NULL) { v 327 http/modules/ngx_http_geoip_module.c v->len = ngx_sprintf(v->data, "%.4f", val) - v->data; v 337 http/modules/ngx_http_geoip_module.c ngx_http_variable_value_t *v, uintptr_t data) v 344 http/modules/ngx_http_geoip_module.c v->not_found = 1; v 348 http/modules/ngx_http_geoip_module.c v->data = ngx_pnalloc(r->pool, NGX_INT64_LEN); v 349 http/modules/ngx_http_geoip_module.c if (v->data == NULL) { v 356 http/modules/ngx_http_geoip_module.c v->len = ngx_sprintf(v->data, "%d", val) - v->data; v 388 http/modules/ngx_http_geoip_module.c ngx_http_variable_t *var, *v; v 390 http/modules/ngx_http_geoip_module.c for (v = ngx_http_geoip_vars; v->name.len; v++) { v 391 http/modules/ngx_http_geoip_module.c var = ngx_http_add_variable(cf, &v->name, v->flags); v 396 http/modules/ngx_http_geoip_module.c var->get_handler = v->get_handler; v 397 http/modules/ngx_http_geoip_module.c var->data = v->data; v 111 http/modules/ngx_http_gzip_filter_module.c ngx_http_variable_value_t *v, uintptr_t data); v 1042 http/modules/ngx_http_gzip_filter_module.c ngx_http_variable_value_t *v, uintptr_t data) v 1047 http/modules/ngx_http_gzip_filter_module.c v->valid = 1; v 1048 http/modules/ngx_http_gzip_filter_module.c v->no_cacheable = 0; v 1049 http/modules/ngx_http_gzip_filter_module.c v->not_found = 0; v 1054 http/modules/ngx_http_gzip_filter_module.c v->not_found = 1; v 1058 http/modules/ngx_http_gzip_filter_module.c v->data = ngx_pnalloc(r->pool, NGX_INT32_LEN + 3); v 1059 http/modules/ngx_http_gzip_filter_module.c if (v->data == NULL) { v 1078 http/modules/ngx_http_gzip_filter_module.c v->len = ngx_sprintf(v->data, "%ui.%02ui", zint, zfrac) - v->data; v 97 http/modules/ngx_http_image_filter_module.c ngx_http_complex_value_t *cv, ngx_uint_t v); v 1098 http/modules/ngx_http_image_filter_module.c ngx_http_complex_value_t *cv, ngx_uint_t v) v 1103 http/modules/ngx_http_image_filter_module.c return v; v 1052 http/modules/ngx_http_log_module.c ngx_http_log_var_t *v; v 1145 http/modules/ngx_http_log_module.c for (v = ngx_http_log_vars; v->name.len; v++) { v 1147 http/modules/ngx_http_log_module.c if (v->name.len == var.len v 1148 http/modules/ngx_http_log_module.c && ngx_strncmp(v->name.data, var.data, var.len) == 0) v 1150 http/modules/ngx_http_log_module.c op->len = v->len; v 1152 http/modules/ngx_http_log_module.c op->run = v->run; v 107 http/modules/ngx_http_map_module.c ngx_http_map_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 146 http/modules/ngx_http_map_module.c *v = *value; v 149 http/modules/ngx_http_map_module.c "http map: \"%v\" \"%v\"", &val, v); v 100 http/modules/ngx_http_proxy_module.c ngx_http_variable_value_t *v, uintptr_t data); v 102 http/modules/ngx_http_proxy_module.c ngx_http_variable_value_t *v, uintptr_t data); v 105 http/modules/ngx_http_proxy_module.c ngx_http_variable_value_t *v, uintptr_t data); v 108 http/modules/ngx_http_proxy_module.c ngx_http_variable_value_t *v, uintptr_t data); v 138 http/modules/ngx_http_proxy_module.c static void ngx_http_proxy_set_vars(ngx_url_t *u, ngx_http_proxy_vars_t *v); v 1381 http/modules/ngx_http_proxy_module.c ngx_http_variable_value_t *v, uintptr_t data) v 1388 http/modules/ngx_http_proxy_module.c v->not_found = 1; v 1392 http/modules/ngx_http_proxy_module.c v->len = ctx->vars.host_header.len; v 1393 http/modules/ngx_http_proxy_module.c v->valid = 1; v 1394 http/modules/ngx_http_proxy_module.c v->no_cacheable = 0; v 1395 http/modules/ngx_http_proxy_module.c v->not_found = 0; v 1396 http/modules/ngx_http_proxy_module.c v->data = ctx->vars.host_header.data; v 1404 http/modules/ngx_http_proxy_module.c ngx_http_variable_value_t *v, uintptr_t data) v 1411 http/modules/ngx_http_proxy_module.c v->not_found = 1; v 1415 http/modules/ngx_http_proxy_module.c v->len = ctx->vars.port.len; v 1416 http/modules/ngx_http_proxy_module.c v->valid = 1; v 1417 http/modules/ngx_http_proxy_module.c v->no_cacheable = 0; v 1418 http/modules/ngx_http_proxy_module.c v->not_found = 0; v 1419 http/modules/ngx_http_proxy_module.c v->data = ctx->vars.port.data; v 1427 http/modules/ngx_http_proxy_module.c ngx_http_variable_value_t *v, uintptr_t data) v 1431 http/modules/ngx_http_proxy_module.c v->valid = 1; v 1432 http/modules/ngx_http_proxy_module.c v->no_cacheable = 0; v 1433 http/modules/ngx_http_proxy_module.c v->not_found = 0; v 1436 http/modules/ngx_http_proxy_module.c v->len = r->connection->addr_text.len; v 1437 http/modules/ngx_http_proxy_module.c v->data = r->connection->addr_text.data; v 1441 http/modules/ngx_http_proxy_module.c v->len = r->headers_in.x_forwarded_for->value.len v 1444 http/modules/ngx_http_proxy_module.c p = ngx_pnalloc(r->pool, v->len); v 1449 http/modules/ngx_http_proxy_module.c v->data = p; v 1464 http/modules/ngx_http_proxy_module.c ngx_http_variable_value_t *v, uintptr_t data) v 1471 http/modules/ngx_http_proxy_module.c v->not_found = 1; v 1475 http/modules/ngx_http_proxy_module.c v->valid = 1; v 1476 http/modules/ngx_http_proxy_module.c v->no_cacheable = 0; v 1477 http/modules/ngx_http_proxy_module.c v->not_found = 0; v 1479 http/modules/ngx_http_proxy_module.c v->data = ngx_pnalloc(r->connection->pool, NGX_SIZE_T_LEN); v 1481 http/modules/ngx_http_proxy_module.c if (v->data == NULL) { v 1485 http/modules/ngx_http_proxy_module.c v->len = ngx_sprintf(v->data, "%uz", ctx->internal_body_length) - v->data; v 1614 http/modules/ngx_http_proxy_module.c ngx_http_variable_t *var, *v; v 1616 http/modules/ngx_http_proxy_module.c for (v = ngx_http_proxy_vars; v->name.len; v++) { v 1617 http/modules/ngx_http_proxy_module.c var = ngx_http_add_variable(cf, &v->name, v->flags); v 1622 http/modules/ngx_http_proxy_module.c var->get_handler = v->get_handler; v 1623 http/modules/ngx_http_proxy_module.c var->data = v->data; v 2778 http/modules/ngx_http_proxy_module.c ngx_http_proxy_set_vars(ngx_url_t *u, ngx_http_proxy_vars_t *v) v 2784 http/modules/ngx_http_proxy_module.c v->host_header = u->host; v 2787 http/modules/ngx_http_proxy_module.c ngx_str_set(&v->port, "80"); v 2790 http/modules/ngx_http_proxy_module.c ngx_str_set(&v->port, "443"); v 2794 http/modules/ngx_http_proxy_module.c v->host_header.len = u->host.len + 1 + u->port_text.len; v 2795 http/modules/ngx_http_proxy_module.c v->host_header.data = u->host.data; v 2796 http/modules/ngx_http_proxy_module.c v->port = u->port_text; v 2799 http/modules/ngx_http_proxy_module.c v->key_start.len += v->host_header.len; v 2802 http/modules/ngx_http_proxy_module.c ngx_str_set(&v->host_header, "localhost"); v 2803 http/modules/ngx_http_proxy_module.c ngx_str_null(&v->port); v 2804 http/modules/ngx_http_proxy_module.c v->key_start.len += sizeof("unix:") - 1 + u->host.len + 1; v 2807 http/modules/ngx_http_proxy_module.c v->uri = u->uri; v 93 http/modules/ngx_http_referer_module.c ngx_http_referer_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 196 http/modules/ngx_http_referer_module.c *v = ngx_http_variable_true_value; v 220 http/modules/ngx_http_referer_module.c *v = ngx_http_variable_null_value; v 183 http/modules/ngx_http_rewrite_module.c ngx_http_rewrite_var(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 193 http/modules/ngx_http_rewrite_module.c *v = ngx_http_variable_null_value; v 210 http/modules/ngx_http_rewrite_module.c *v = ngx_http_variable_null_value; v 437 http/modules/ngx_http_rewrite_module.c ngx_str_t *value, *v; v 465 http/modules/ngx_http_rewrite_module.c v = &value[1]; v 479 http/modules/ngx_http_rewrite_module.c v = &value[2]; v 485 http/modules/ngx_http_rewrite_module.c ccv.value = v; v 886 http/modules/ngx_http_rewrite_module.c ngx_http_variable_t *v; v 901 http/modules/ngx_http_rewrite_module.c v = ngx_http_add_variable(cf, &value[1], NGX_HTTP_VAR_CHANGEABLE); v 902 http/modules/ngx_http_rewrite_module.c if (v == NULL) { v 911 http/modules/ngx_http_rewrite_module.c if (v->get_handler == NULL v 916 http/modules/ngx_http_rewrite_module.c v->get_handler = ngx_http_rewrite_var; v 917 http/modules/ngx_http_rewrite_module.c v->data = index; v 924 http/modules/ngx_http_rewrite_module.c if (v->set_handler) { v 932 http/modules/ngx_http_rewrite_module.c vhcode->handler = v->set_handler; v 933 http/modules/ngx_http_rewrite_module.c vhcode->data = v->data; v 26 http/modules/ngx_http_secure_link_module.c ngx_http_secure_link_conf_t *conf, ngx_http_variable_value_t *v, v 29 http/modules/ngx_http_secure_link_module.c ngx_http_variable_value_t *v, uintptr_t data); v 101 http/modules/ngx_http_secure_link_module.c ngx_http_variable_value_t *v, uintptr_t data) v 114 http/modules/ngx_http_secure_link_module.c return ngx_http_secure_link_old_variable(r, conf, v, data); v 182 http/modules/ngx_http_secure_link_module.c v->data = (u_char *) ((expires && expires < ngx_time()) ? "0" : "1"); v 183 http/modules/ngx_http_secure_link_module.c v->len = 1; v 184 http/modules/ngx_http_secure_link_module.c v->valid = 1; v 185 http/modules/ngx_http_secure_link_module.c v->no_cacheable = 0; v 186 http/modules/ngx_http_secure_link_module.c v->not_found = 0; v 192 http/modules/ngx_http_secure_link_module.c v->not_found = 1; v 200 http/modules/ngx_http_secure_link_module.c ngx_http_secure_link_conf_t *conf, ngx_http_variable_value_t *v, v 253 http/modules/ngx_http_secure_link_module.c v->len = len; v 254 http/modules/ngx_http_secure_link_module.c v->valid = 1; v 255 http/modules/ngx_http_secure_link_module.c v->no_cacheable = 0; v 256 http/modules/ngx_http_secure_link_module.c v->not_found = 0; v 257 http/modules/ngx_http_secure_link_module.c v->data = p; v 263 http/modules/ngx_http_secure_link_module.c v->not_found = 1; v 271 http/modules/ngx_http_secure_link_module.c ngx_http_variable_value_t *v, uintptr_t data) v 278 http/modules/ngx_http_secure_link_module.c v->len = ctx->expires.len; v 279 http/modules/ngx_http_secure_link_module.c v->valid = 1; v 280 http/modules/ngx_http_secure_link_module.c v->no_cacheable = 0; v 281 http/modules/ngx_http_secure_link_module.c v->not_found = 0; v 282 http/modules/ngx_http_secure_link_module.c v->data = ctx->expires.data; v 285 http/modules/ngx_http_secure_link_module.c v->not_found = 1; v 75 http/modules/ngx_http_split_clients_module.c ngx_http_variable_value_t *v, uintptr_t data) v 84 http/modules/ngx_http_split_clients_module.c *v = ngx_http_variable_null_value; v 100 http/modules/ngx_http_split_clients_module.c *v = part[i].value; v 106 http/modules/ngx_http_ssi_filter_module.c ngx_http_variable_value_t *v, uintptr_t gmt); v 2596 http/modules/ngx_http_ssi_filter_module.c ngx_http_variable_value_t *v, uintptr_t gmt) v 2603 http/modules/ngx_http_ssi_filter_module.c v->valid = 1; v 2604 http/modules/ngx_http_ssi_filter_module.c v->no_cacheable = 0; v 2605 http/modules/ngx_http_ssi_filter_module.c v->not_found = 0; v 2615 http/modules/ngx_http_ssi_filter_module.c v->data = ngx_pnalloc(r->pool, NGX_TIME_T_LEN); v 2616 http/modules/ngx_http_ssi_filter_module.c if (v->data == NULL) { v 2620 http/modules/ngx_http_ssi_filter_module.c v->len = ngx_sprintf(v->data, "%T", tp->sec) - v->data; v 2631 http/modules/ngx_http_ssi_filter_module.c v->len = strftime(buf, NGX_HTTP_SSI_DATE_LEN, v 2633 http/modules/ngx_http_ssi_filter_module.c if (v->len == 0) { v 2637 http/modules/ngx_http_ssi_filter_module.c v->data = ngx_pnalloc(r->pool, v->len); v 2638 http/modules/ngx_http_ssi_filter_module.c if (v->data == NULL) { v 2642 http/modules/ngx_http_ssi_filter_module.c ngx_memcpy(v->data, buf, v->len); v 2652 http/modules/ngx_http_ssi_filter_module.c ngx_http_variable_t *var, *v; v 2656 http/modules/ngx_http_ssi_filter_module.c for (v = ngx_http_ssi_vars; v->name.len; v++) { v 2657 http/modules/ngx_http_ssi_filter_module.c var = ngx_http_add_variable(cf, &v->name, v->flags); v 2662 http/modules/ngx_http_ssi_filter_module.c var->get_handler = v->get_handler; v 2663 http/modules/ngx_http_ssi_filter_module.c var->data = v->data; v 20 http/modules/ngx_http_ssl_module.c ngx_http_variable_value_t *v, uintptr_t data); v 22 http/modules/ngx_http_ssl_module.c ngx_http_variable_value_t *v, uintptr_t data); v 218 http/modules/ngx_http_ssl_module.c ngx_http_variable_value_t *v, uintptr_t data) v 229 http/modules/ngx_http_ssl_module.c v->data = s.data; v 231 http/modules/ngx_http_ssl_module.c for (len = 0; v->data[len]; len++) { /* void */ } v 233 http/modules/ngx_http_ssl_module.c v->len = len; v 234 http/modules/ngx_http_ssl_module.c v->valid = 1; v 235 http/modules/ngx_http_ssl_module.c v->no_cacheable = 0; v 236 http/modules/ngx_http_ssl_module.c v->not_found = 0; v 241 http/modules/ngx_http_ssl_module.c v->not_found = 1; v 248 http/modules/ngx_http_ssl_module.c ngx_http_ssl_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 261 http/modules/ngx_http_ssl_module.c v->len = s.len; v 262 http/modules/ngx_http_ssl_module.c v->data = s.data; v 264 http/modules/ngx_http_ssl_module.c if (v->len) { v 265 http/modules/ngx_http_ssl_module.c v->valid = 1; v 266 http/modules/ngx_http_ssl_module.c v->no_cacheable = 0; v 267 http/modules/ngx_http_ssl_module.c v->not_found = 0; v 273 http/modules/ngx_http_ssl_module.c v->not_found = 1; v 282 http/modules/ngx_http_ssl_module.c ngx_http_variable_t *var, *v; v 284 http/modules/ngx_http_ssl_module.c for (v = ngx_http_ssl_vars; v->name.len; v++) { v 285 http/modules/ngx_http_ssl_module.c var = ngx_http_add_variable(cf, &v->name, v->flags); v 290 http/modules/ngx_http_ssl_module.c var->get_handler = v->get_handler; v 291 http/modules/ngx_http_ssl_module.c var->data = v->data; v 47 http/modules/ngx_http_userid_filter_module.c ngx_http_variable_value_t *v, ngx_str_t *name, uint32_t *uid); v 224 http/modules/ngx_http_userid_filter_module.c ngx_http_variable_value_t *v, uintptr_t data) v 232 http/modules/ngx_http_userid_filter_module.c v->not_found = 1; v 243 http/modules/ngx_http_userid_filter_module.c return ngx_http_userid_variable(r->main, v, &conf->name, ctx->uid_got); v 246 http/modules/ngx_http_userid_filter_module.c v->not_found = 1; v 254 http/modules/ngx_http_userid_filter_module.c ngx_http_variable_value_t *v, uintptr_t data) v 262 http/modules/ngx_http_userid_filter_module.c v->not_found = 1; v 277 http/modules/ngx_http_userid_filter_module.c v->not_found = 1; v 281 http/modules/ngx_http_userid_filter_module.c return ngx_http_userid_variable(r->main, v, &conf->name, ctx->uid_set); v 548 http/modules/ngx_http_userid_filter_module.c ngx_http_userid_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 551 http/modules/ngx_http_userid_filter_module.c v->len = name->len + sizeof("=00001111222233334444555566667777") - 1; v 552 http/modules/ngx_http_userid_filter_module.c v->data = ngx_pnalloc(r->pool, v->len); v 553 http/modules/ngx_http_userid_filter_module.c if (v->data == NULL) { v 557 http/modules/ngx_http_userid_filter_module.c v->valid = 1; v 558 http/modules/ngx_http_userid_filter_module.c v->no_cacheable = 0; v 559 http/modules/ngx_http_userid_filter_module.c v->not_found = 0; v 561 http/modules/ngx_http_userid_filter_module.c ngx_sprintf(v->data, "%V=%08XD%08XD%08XD%08XD", v 292 http/modules/perl/ngx_http_perl_module.c ngx_http_perl_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 331 http/modules/perl/ngx_http_perl_module.c v->len = value.len; v 332 http/modules/perl/ngx_http_perl_module.c v->valid = 1; v 333 http/modules/perl/ngx_http_perl_module.c v->no_cacheable = 0; v 334 http/modules/perl/ngx_http_perl_module.c v->not_found = 0; v 335 http/modules/perl/ngx_http_perl_module.c v->data = value.data; v 338 http/modules/perl/ngx_http_perl_module.c v->not_found = 1; v 964 http/modules/perl/ngx_http_perl_module.c ngx_http_variable_t *v; v 979 http/modules/perl/ngx_http_perl_module.c v = ngx_http_add_variable(cf, &value[1], NGX_HTTP_VAR_CHANGEABLE); v 980 http/modules/perl/ngx_http_perl_module.c if (v == NULL) { v 1023 http/modules/perl/ngx_http_perl_module.c v->get_handler = ngx_http_perl_variable; v 1024 http/modules/perl/ngx_http_perl_module.c v->data = (uintptr_t) pv; v 1696 http/ngx_http_file_cache.c ngx_http_cache_valid_t *v; v 1721 http/ngx_http_file_cache.c v = ngx_array_push(*a); v 1722 http/ngx_http_file_cache.c if (v == NULL) { v 1726 http/ngx_http_file_cache.c v->status = statuses[i]; v 1727 http/ngx_http_file_cache.c v->valid = valid; v 1749 http/ngx_http_file_cache.c v = ngx_array_push(*a); v 1750 http/ngx_http_file_cache.c if (v == NULL) { v 1754 http/ngx_http_file_cache.c v->status = status; v 1755 http/ngx_http_file_cache.c v->valid = valid; v 109 http/ngx_http_script.c ngx_str_t *v; v 114 http/ngx_http_script.c v = ccv->value; v 116 http/ngx_http_script.c if (v->len == 0) { v 124 http/ngx_http_script.c for (i = 0; i < v->len; i++) { v 125 http/ngx_http_script.c if (v->data[i] == '$') { v 126 http/ngx_http_script.c if (v->data[i + 1] >= '1' && v->data[i + 1] <= '9') { v 135 http/ngx_http_script.c if (v->data[0] != '$' && (ccv->conf_prefix || ccv->root_prefix)) { v 137 http/ngx_http_script.c if (ngx_conf_full_name(ccv->cf->cycle, v, ccv->conf_prefix) != NGX_OK) { v 145 http/ngx_http_script.c ccv->complex_value->value = *v; v 173 http/ngx_http_script.c + v->len v 188 http/ngx_http_script.c sc.source = v; v 1683 http/ngx_http_script.c ngx_http_variable_t *v; v 1688 http/ngx_http_script.c v = cmcf->variables.elts; v 1691 http/ngx_http_script.c "http script set $%V", &v[code->index].name); v 18 http/ngx_http_upstream.c ngx_http_variable_value_t *v, uintptr_t data); v 117 http/ngx_http_upstream.c ngx_http_variable_value_t *v, uintptr_t data); v 119 http/ngx_http_upstream.c ngx_http_variable_value_t *v, uintptr_t data); v 121 http/ngx_http_upstream.c ngx_http_variable_value_t *v, uintptr_t data); v 123 http/ngx_http_upstream.c ngx_http_request_t *r, ngx_http_variable_value_t *v, uintptr_t data); v 3620 http/ngx_http_upstream.c ngx_http_variable_t *var, *v; v 3622 http/ngx_http_upstream.c for (v = ngx_http_upstream_vars; v->name.len; v++) { v 3623 http/ngx_http_upstream.c var = ngx_http_add_variable(cf, &v->name, v->flags); v 3628 http/ngx_http_upstream.c var->get_handler = v->get_handler; v 3629 http/ngx_http_upstream.c var->data = v->data; v 3638 http/ngx_http_upstream.c ngx_http_variable_value_t *v, uintptr_t data) v 3645 http/ngx_http_upstream.c v->valid = 1; v 3646 http/ngx_http_upstream.c v->no_cacheable = 0; v 3647 http/ngx_http_upstream.c v->not_found = 0; v 3650 http/ngx_http_upstream.c v->not_found = 1; v 3671 http/ngx_http_upstream.c v->data = p; v 3701 http/ngx_http_upstream.c v->len = p - v->data; v 3709 http/ngx_http_upstream.c ngx_http_variable_value_t *v, uintptr_t data) v 3716 http/ngx_http_upstream.c v->valid = 1; v 3717 http/ngx_http_upstream.c v->no_cacheable = 0; v 3718 http/ngx_http_upstream.c v->not_found = 0; v 3721 http/ngx_http_upstream.c v->not_found = 1; v 3732 http/ngx_http_upstream.c v->data = p; v 3766 http/ngx_http_upstream.c v->len = p - v->data; v 3774 http/ngx_http_upstream.c ngx_http_variable_value_t *v, uintptr_t data) v 3782 http/ngx_http_upstream.c v->valid = 1; v 3783 http/ngx_http_upstream.c v->no_cacheable = 0; v 3784 http/ngx_http_upstream.c v->not_found = 0; v 3787 http/ngx_http_upstream.c v->not_found = 1; v 3798 http/ngx_http_upstream.c v->data = p; v 3835 http/ngx_http_upstream.c v->len = p - v->data; v 3843 http/ngx_http_upstream.c ngx_http_variable_value_t *v, uintptr_t data) v 3850 http/ngx_http_upstream.c v->valid = 1; v 3851 http/ngx_http_upstream.c v->no_cacheable = 0; v 3852 http/ngx_http_upstream.c v->not_found = 0; v 3855 http/ngx_http_upstream.c v->not_found = 1; v 3866 http/ngx_http_upstream.c v->data = p; v 3895 http/ngx_http_upstream.c v->len = p - v->data; v 3903 http/ngx_http_upstream.c ngx_http_variable_value_t *v, uintptr_t data) v 3906 http/ngx_http_upstream.c v->not_found = 1; v 3910 http/ngx_http_upstream.c return ngx_http_variable_unknown_header(v, (ngx_str_t *) data, v 3920 http/ngx_http_upstream.c ngx_http_variable_value_t *v, uintptr_t data) v 3925 http/ngx_http_upstream.c v->not_found = 1; v 3931 http/ngx_http_upstream.c v->valid = 1; v 3932 http/ngx_http_upstream.c v->no_cacheable = 0; v 3933 http/ngx_http_upstream.c v->not_found = 0; v 3934 http/ngx_http_upstream.c v->len = ngx_http_cache_status[n].len; v 3935 http/ngx_http_upstream.c v->data = ngx_http_cache_status[n].data; v 323 http/ngx_http_upstream.h ngx_http_variable_value_t *v, uintptr_t data); v 14 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 16 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 18 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 20 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 22 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 24 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 27 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 29 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 31 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 33 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 35 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 38 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 40 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 42 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 44 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 46 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 48 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 50 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 52 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 54 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 56 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 58 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 60 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 62 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 64 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 66 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 68 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 70 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 72 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 75 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 77 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 79 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 81 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 83 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 85 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 87 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 90 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 92 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 94 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data); v 273 http/ngx_http_variables.c ngx_http_variable_t *v; v 286 http/ngx_http_variables.c v = key[i].value; v 288 http/ngx_http_variables.c if (!(v->flags & NGX_HTTP_VAR_CHANGEABLE)) { v 294 http/ngx_http_variables.c return v; v 297 http/ngx_http_variables.c v = ngx_palloc(cf->pool, sizeof(ngx_http_variable_t)); v 298 http/ngx_http_variables.c if (v == NULL) { v 302 http/ngx_http_variables.c v->name.len = name->len; v 303 http/ngx_http_variables.c v->name.data = ngx_pnalloc(cf->pool, name->len); v 304 http/ngx_http_variables.c if (v->name.data == NULL) { v 308 http/ngx_http_variables.c ngx_strlow(v->name.data, name->data, name->len); v 310 http/ngx_http_variables.c v->set_handler = NULL; v 311 http/ngx_http_variables.c v->get_handler = NULL; v 312 http/ngx_http_variables.c v->data = 0; v 313 http/ngx_http_variables.c v->flags = flags; v 314 http/ngx_http_variables.c v->index = 0; v 316 http/ngx_http_variables.c rc = ngx_hash_add_key(cmcf->variables_keys, &v->name, v, 0); v 328 http/ngx_http_variables.c return v; v 336 http/ngx_http_variables.c ngx_http_variable_t *v; v 341 http/ngx_http_variables.c v = cmcf->variables.elts; v 343 http/ngx_http_variables.c if (v == NULL) { v 353 http/ngx_http_variables.c if (name->len != v[i].name.len v 354 http/ngx_http_variables.c || ngx_strncasecmp(name->data, v[i].name.data, name->len) != 0) v 363 http/ngx_http_variables.c v = ngx_array_push(&cmcf->variables); v 364 http/ngx_http_variables.c if (v == NULL) { v 368 http/ngx_http_variables.c v->name.len = name->len; v 369 http/ngx_http_variables.c v->name.data = ngx_pnalloc(cf->pool, name->len); v 370 http/ngx_http_variables.c if (v->name.data == NULL) { v 374 http/ngx_http_variables.c ngx_strlow(v->name.data, name->data, name->len); v 376 http/ngx_http_variables.c v->set_handler = NULL; v 377 http/ngx_http_variables.c v->get_handler = NULL; v 378 http/ngx_http_variables.c v->data = 0; v 379 http/ngx_http_variables.c v->flags = 0; v 380 http/ngx_http_variables.c v->index = cmcf->variables.nelts - 1; v 389 http/ngx_http_variables.c ngx_http_variable_t *v; v 404 http/ngx_http_variables.c v = cmcf->variables.elts; v 406 http/ngx_http_variables.c if (v[index].get_handler(r, &r->variables[index], v[index].data) v 409 http/ngx_http_variables.c if (v[index].flags & NGX_HTTP_VAR_NOCACHEABLE) { v 426 http/ngx_http_variables.c ngx_http_variable_value_t *v; v 428 http/ngx_http_variables.c v = &r->variables[index]; v 430 http/ngx_http_variables.c if (v->valid) { v 431 http/ngx_http_variables.c if (!v->no_cacheable) { v 432 http/ngx_http_variables.c return v; v 435 http/ngx_http_variables.c v->valid = 0; v 436 http/ngx_http_variables.c v->not_found = 0; v 446 http/ngx_http_variables.c ngx_http_variable_t *v; v 452 http/ngx_http_variables.c v = ngx_hash_find(&cmcf->variables_hash, key, name->data, name->len); v 454 http/ngx_http_variables.c if (v) { v 455 http/ngx_http_variables.c if (v->flags & NGX_HTTP_VAR_INDEXED) { v 456 http/ngx_http_variables.c return ngx_http_get_flushed_variable(r, v->index); v 462 http/ngx_http_variables.c if (vv && v->get_handler(r, vv, v->data) == NGX_OK) { v 533 http/ngx_http_variables.c ngx_http_variable_request(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 541 http/ngx_http_variables.c v->len = s->len; v 542 http/ngx_http_variables.c v->valid = 1; v 543 http/ngx_http_variables.c v->no_cacheable = 0; v 544 http/ngx_http_variables.c v->not_found = 0; v 545 http/ngx_http_variables.c v->data = s->data; v 548 http/ngx_http_variables.c v->not_found = 1; v 557 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 563 http/ngx_http_variables.c s->len = v->len; v 564 http/ngx_http_variables.c s->data = v->data; v 570 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 576 http/ngx_http_variables.c v->data = ngx_pnalloc(r->pool, NGX_SIZE_T_LEN); v 577 http/ngx_http_variables.c if (v->data == NULL) { v 581 http/ngx_http_variables.c v->len = ngx_sprintf(v->data, "%uz", *sp) - v->data; v 582 http/ngx_http_variables.c v->valid = 1; v 583 http/ngx_http_variables.c v->no_cacheable = 0; v 584 http/ngx_http_variables.c v->not_found = 0; v 592 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 597 http/ngx_http_variables.c val.len = v->len; v 598 http/ngx_http_variables.c val.data = v->data; v 617 http/ngx_http_variables.c ngx_http_variable_header(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 625 http/ngx_http_variables.c v->len = h->value.len; v 626 http/ngx_http_variables.c v->valid = 1; v 627 http/ngx_http_variables.c v->no_cacheable = 0; v 628 http/ngx_http_variables.c v->not_found = 0; v 629 http/ngx_http_variables.c v->data = h->value.data; v 632 http/ngx_http_variables.c v->not_found = 1; v 640 http/ngx_http_variables.c ngx_http_variable_headers(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 654 http/ngx_http_variables.c v->not_found = 1; v 658 http/ngx_http_variables.c v->valid = 1; v 659 http/ngx_http_variables.c v->no_cacheable = 0; v 660 http/ngx_http_variables.c v->not_found = 0; v 665 http/ngx_http_variables.c v->len = (*h)->value.len; v 666 http/ngx_http_variables.c v->data = (*h)->value.data; v 682 http/ngx_http_variables.c v->len = len; v 683 http/ngx_http_variables.c v->data = p; v 701 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 703 http/ngx_http_variables.c return ngx_http_variable_unknown_header(v, (ngx_str_t *) data, v 711 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 713 http/ngx_http_variables.c return ngx_http_variable_unknown_header(v, (ngx_str_t *) data, v 720 http/ngx_http_variables.c ngx_http_variable_unknown_header(ngx_http_variable_value_t *v, ngx_str_t *var, v 757 http/ngx_http_variables.c v->len = header[i].value.len; v 758 http/ngx_http_variables.c v->valid = 1; v 759 http/ngx_http_variables.c v->no_cacheable = 0; v 760 http/ngx_http_variables.c v->not_found = 0; v 761 http/ngx_http_variables.c v->data = header[i].value.data; v 767 http/ngx_http_variables.c v->not_found = 1; v 775 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 785 http/ngx_http_variables.c v->not_found = 1; v 799 http/ngx_http_variables.c v->len = r->request_line.len; v 800 http/ngx_http_variables.c v->valid = 1; v 801 http/ngx_http_variables.c v->no_cacheable = 0; v 802 http/ngx_http_variables.c v->not_found = 0; v 803 http/ngx_http_variables.c v->data = s; v 810 http/ngx_http_variables.c ngx_http_variable_cookie(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 823 http/ngx_http_variables.c v->not_found = 1; v 827 http/ngx_http_variables.c v->len = cookie.len; v 828 http/ngx_http_variables.c v->valid = 1; v 829 http/ngx_http_variables.c v->no_cacheable = 0; v 830 http/ngx_http_variables.c v->not_found = 0; v 831 http/ngx_http_variables.c v->data = cookie.data; v 838 http/ngx_http_variables.c ngx_http_variable_argument(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 851 http/ngx_http_variables.c v->not_found = 1; v 855 http/ngx_http_variables.c v->data = value.data; v 856 http/ngx_http_variables.c v->len = value.len; v 857 http/ngx_http_variables.c v->valid = 1; v 858 http/ngx_http_variables.c v->no_cacheable = 0; v 859 http/ngx_http_variables.c v->not_found = 0; v 866 http/ngx_http_variables.c ngx_http_variable_host(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 872 http/ngx_http_variables.c v->len = r->headers_in.server.len; v 873 http/ngx_http_variables.c v->data = r->headers_in.server.data; v 878 http/ngx_http_variables.c v->len = cscf->server_name.len; v 879 http/ngx_http_variables.c v->data = cscf->server_name.data; v 882 http/ngx_http_variables.c v->valid = 1; v 883 http/ngx_http_variables.c v->no_cacheable = 0; v 884 http/ngx_http_variables.c v->not_found = 0; v 892 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 905 http/ngx_http_variables.c v->len = sizeof(struct in6_addr); v 906 http/ngx_http_variables.c v->valid = 1; v 907 http/ngx_http_variables.c v->no_cacheable = 0; v 908 http/ngx_http_variables.c v->not_found = 0; v 909 http/ngx_http_variables.c v->data = sin6->sin6_addr.s6_addr; v 917 http/ngx_http_variables.c v->len = sizeof(in_addr_t); v 918 http/ngx_http_variables.c v->valid = 1; v 919 http/ngx_http_variables.c v->no_cacheable = 0; v 920 http/ngx_http_variables.c v->not_found = 0; v 921 http/ngx_http_variables.c v->data = (u_char *) &sin->sin_addr; v 932 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 934 http/ngx_http_variables.c v->len = r->connection->addr_text.len; v 935 http/ngx_http_variables.c v->valid = 1; v 936 http/ngx_http_variables.c v->no_cacheable = 0; v 937 http/ngx_http_variables.c v->not_found = 0; v 938 http/ngx_http_variables.c v->data = r->connection->addr_text.data; v 946 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 954 http/ngx_http_variables.c v->len = 0; v 955 http/ngx_http_variables.c v->valid = 1; v 956 http/ngx_http_variables.c v->no_cacheable = 0; v 957 http/ngx_http_variables.c v->not_found = 0; v 959 http/ngx_http_variables.c v->data = ngx_pnalloc(r->pool, sizeof("65535") - 1); v 960 http/ngx_http_variables.c if (v->data == NULL) { v 980 http/ngx_http_variables.c v->len = ngx_sprintf(v->data, "%ui", port) - v->data; v 989 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1008 http/ngx_http_variables.c v->len = s.len; v 1009 http/ngx_http_variables.c v->valid = 1; v 1010 http/ngx_http_variables.c v->no_cacheable = 0; v 1011 http/ngx_http_variables.c v->not_found = 0; v 1012 http/ngx_http_variables.c v->data = s.data; v 1020 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1028 http/ngx_http_variables.c v->len = 0; v 1029 http/ngx_http_variables.c v->valid = 1; v 1030 http/ngx_http_variables.c v->no_cacheable = 0; v 1031 http/ngx_http_variables.c v->not_found = 0; v 1037 http/ngx_http_variables.c v->data = ngx_pnalloc(r->pool, sizeof("65535") - 1); v 1038 http/ngx_http_variables.c if (v->data == NULL) { v 1058 http/ngx_http_variables.c v->len = ngx_sprintf(v->data, "%ui", port) - v->data; v 1067 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1072 http/ngx_http_variables.c v->len = sizeof("https") - 1; v 1073 http/ngx_http_variables.c v->valid = 1; v 1074 http/ngx_http_variables.c v->no_cacheable = 0; v 1075 http/ngx_http_variables.c v->not_found = 0; v 1076 http/ngx_http_variables.c v->data = (u_char *) "https"; v 1083 http/ngx_http_variables.c v->len = sizeof("http") - 1; v 1084 http/ngx_http_variables.c v->valid = 1; v 1085 http/ngx_http_variables.c v->no_cacheable = 0; v 1086 http/ngx_http_variables.c v->not_found = 0; v 1087 http/ngx_http_variables.c v->data = (u_char *) "http"; v 1095 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1097 http/ngx_http_variables.c v->valid = 1; v 1098 http/ngx_http_variables.c v->no_cacheable = 0; v 1099 http/ngx_http_variables.c v->not_found = 0; v 1102 http/ngx_http_variables.c v->len = 0; v 1103 http/ngx_http_variables.c v->data = NULL; v 1107 http/ngx_http_variables.c v->len = 1; v 1108 http/ngx_http_variables.c v->data = (u_char *) "?"; v 1116 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1124 http/ngx_http_variables.c v->len = clcf->root.len; v 1125 http/ngx_http_variables.c v->valid = 1; v 1126 http/ngx_http_variables.c v->no_cacheable = 0; v 1127 http/ngx_http_variables.c v->not_found = 0; v 1128 http/ngx_http_variables.c v->data = clcf->root.data; v 1142 http/ngx_http_variables.c v->len = path.len; v 1143 http/ngx_http_variables.c v->valid = 1; v 1144 http/ngx_http_variables.c v->no_cacheable = 0; v 1145 http/ngx_http_variables.c v->not_found = 0; v 1146 http/ngx_http_variables.c v->data = path.data; v 1155 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1190 http/ngx_http_variables.c v->data = ngx_pnalloc(r->pool, len); v 1191 http/ngx_http_variables.c if (v->data == NULL) { v 1195 http/ngx_http_variables.c v->len = len; v 1196 http/ngx_http_variables.c v->valid = 1; v 1197 http/ngx_http_variables.c v->no_cacheable = 0; v 1198 http/ngx_http_variables.c v->not_found = 0; v 1200 http/ngx_http_variables.c ngx_memcpy(v->data, real, len); v 1208 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1219 http/ngx_http_variables.c v->len = path.len - 1; v 1220 http/ngx_http_variables.c v->valid = 1; v 1221 http/ngx_http_variables.c v->no_cacheable = 0; v 1222 http/ngx_http_variables.c v->not_found = 0; v 1223 http/ngx_http_variables.c v->data = path.data; v 1231 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1237 http/ngx_http_variables.c v->len = cscf->server_name.len; v 1238 http/ngx_http_variables.c v->valid = 1; v 1239 http/ngx_http_variables.c v->no_cacheable = 0; v 1240 http/ngx_http_variables.c v->not_found = 0; v 1241 http/ngx_http_variables.c v->data = cscf->server_name.data; v 1249 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1252 http/ngx_http_variables.c v->len = r->main->method_name.len; v 1253 http/ngx_http_variables.c v->valid = 1; v 1254 http/ngx_http_variables.c v->no_cacheable = 0; v 1255 http/ngx_http_variables.c v->not_found = 0; v 1256 http/ngx_http_variables.c v->data = r->main->method_name.data; v 1259 http/ngx_http_variables.c v->not_found = 1; v 1268 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1275 http/ngx_http_variables.c v->not_found = 1; v 1283 http/ngx_http_variables.c v->len = r->headers_in.user.len; v 1284 http/ngx_http_variables.c v->valid = 1; v 1285 http/ngx_http_variables.c v->no_cacheable = 0; v 1286 http/ngx_http_variables.c v->not_found = 0; v 1287 http/ngx_http_variables.c v->data = r->headers_in.user.data; v 1295 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1311 http/ngx_http_variables.c v->len = ngx_sprintf(p, "%O", sent) - p; v 1312 http/ngx_http_variables.c v->valid = 1; v 1313 http/ngx_http_variables.c v->no_cacheable = 0; v 1314 http/ngx_http_variables.c v->not_found = 0; v 1315 http/ngx_http_variables.c v->data = p; v 1323 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1326 http/ngx_http_variables.c v->len = r->headers_out.content_type.len; v 1327 http/ngx_http_variables.c v->valid = 1; v 1328 http/ngx_http_variables.c v->no_cacheable = 0; v 1329 http/ngx_http_variables.c v->not_found = 0; v 1330 http/ngx_http_variables.c v->data = r->headers_out.content_type.data; v 1333 http/ngx_http_variables.c v->not_found = 1; v 1342 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1347 http/ngx_http_variables.c v->len = r->headers_out.content_length->value.len; v 1348 http/ngx_http_variables.c v->valid = 1; v 1349 http/ngx_http_variables.c v->no_cacheable = 0; v 1350 http/ngx_http_variables.c v->not_found = 0; v 1351 http/ngx_http_variables.c v->data = r->headers_out.content_length->value.data; v 1362 http/ngx_http_variables.c v->len = ngx_sprintf(p, "%O", r->headers_out.content_length_n) - p; v 1363 http/ngx_http_variables.c v->valid = 1; v 1364 http/ngx_http_variables.c v->no_cacheable = 0; v 1365 http/ngx_http_variables.c v->not_found = 0; v 1366 http/ngx_http_variables.c v->data = p; v 1371 http/ngx_http_variables.c v->not_found = 1; v 1379 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1384 http/ngx_http_variables.c v->len = r->headers_out.location->value.len; v 1385 http/ngx_http_variables.c v->valid = 1; v 1386 http/ngx_http_variables.c v->no_cacheable = 0; v 1387 http/ngx_http_variables.c v->not_found = 0; v 1388 http/ngx_http_variables.c v->data = r->headers_out.location->value.data; v 1395 http/ngx_http_variables.c return ngx_http_variable_unknown_header(v, &name, v 1403 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1408 http/ngx_http_variables.c v->len = r->headers_out.last_modified->value.len; v 1409 http/ngx_http_variables.c v->valid = 1; v 1410 http/ngx_http_variables.c v->no_cacheable = 0; v 1411 http/ngx_http_variables.c v->not_found = 0; v 1412 http/ngx_http_variables.c v->data = r->headers_out.last_modified->value.data; v 1424 http/ngx_http_variables.c v->len = ngx_http_time(p, r->headers_out.last_modified_time) - p; v 1425 http/ngx_http_variables.c v->valid = 1; v 1426 http/ngx_http_variables.c v->no_cacheable = 0; v 1427 http/ngx_http_variables.c v->not_found = 0; v 1428 http/ngx_http_variables.c v->data = p; v 1433 http/ngx_http_variables.c v->not_found = 1; v 1441 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1455 http/ngx_http_variables.c v->len = len; v 1456 http/ngx_http_variables.c v->valid = 1; v 1457 http/ngx_http_variables.c v->no_cacheable = 0; v 1458 http/ngx_http_variables.c v->not_found = 0; v 1459 http/ngx_http_variables.c v->data = (u_char *) p; v 1467 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1482 http/ngx_http_variables.c v->len = ngx_sprintf(p, "timeout=%T", clcf->keepalive_header) - p; v 1483 http/ngx_http_variables.c v->valid = 1; v 1484 http/ngx_http_variables.c v->no_cacheable = 0; v 1485 http/ngx_http_variables.c v->not_found = 0; v 1486 http/ngx_http_variables.c v->data = p; v 1492 http/ngx_http_variables.c v->not_found = 1; v 1500 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1503 http/ngx_http_variables.c v->len = sizeof("chunked") - 1; v 1504 http/ngx_http_variables.c v->valid = 1; v 1505 http/ngx_http_variables.c v->no_cacheable = 0; v 1506 http/ngx_http_variables.c v->not_found = 0; v 1507 http/ngx_http_variables.c v->data = (u_char *) "chunked"; v 1510 http/ngx_http_variables.c v->not_found = 1; v 1519 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1522 http/ngx_http_variables.c v->len = 2; v 1523 http/ngx_http_variables.c v->valid = 1; v 1524 http/ngx_http_variables.c v->no_cacheable = 0; v 1525 http/ngx_http_variables.c v->not_found = 0; v 1526 http/ngx_http_variables.c v->data = (u_char *) "OK"; v 1531 http/ngx_http_variables.c v->len = 0; v 1532 http/ngx_http_variables.c v->valid = 1; v 1533 http/ngx_http_variables.c v->no_cacheable = 0; v 1534 http/ngx_http_variables.c v->not_found = 0; v 1535 http/ngx_http_variables.c v->data = (u_char *) ""; v 1543 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1554 http/ngx_http_variables.c v->not_found = 1; v 1563 http/ngx_http_variables.c v->len = buf->last - buf->pos; v 1564 http/ngx_http_variables.c v->valid = 1; v 1565 http/ngx_http_variables.c v->no_cacheable = 0; v 1566 http/ngx_http_variables.c v->not_found = 0; v 1567 http/ngx_http_variables.c v->data = buf->pos; v 1580 http/ngx_http_variables.c v->data = p; v 1585 http/ngx_http_variables.c v->len = len; v 1586 http/ngx_http_variables.c v->valid = 1; v 1587 http/ngx_http_variables.c v->no_cacheable = 0; v 1588 http/ngx_http_variables.c v->not_found = 0; v 1596 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1599 http/ngx_http_variables.c v->not_found = 1; v 1604 http/ngx_http_variables.c v->len = r->request_body->temp_file->file.name.len; v 1605 http/ngx_http_variables.c v->valid = 1; v 1606 http/ngx_http_variables.c v->no_cacheable = 0; v 1607 http/ngx_http_variables.c v->not_found = 0; v 1608 http/ngx_http_variables.c v->data = r->request_body->temp_file->file.name.data; v 1616 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1618 http/ngx_http_variables.c v->len = sizeof(NGINX_VERSION) - 1; v 1619 http/ngx_http_variables.c v->valid = 1; v 1620 http/ngx_http_variables.c v->no_cacheable = 0; v 1621 http/ngx_http_variables.c v->not_found = 0; v 1622 http/ngx_http_variables.c v->data = (u_char *) NGINX_VERSION; v 1630 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1632 http/ngx_http_variables.c v->len = ngx_cycle->hostname.len; v 1633 http/ngx_http_variables.c v->valid = 1; v 1634 http/ngx_http_variables.c v->no_cacheable = 0; v 1635 http/ngx_http_variables.c v->not_found = 0; v 1636 http/ngx_http_variables.c v->data = ngx_cycle->hostname.data; v 1644 http/ngx_http_variables.c ngx_http_variable_value_t *v, uintptr_t data) v 1653 http/ngx_http_variables.c v->len = ngx_sprintf(p, "%P", ngx_pid) - p; v 1654 http/ngx_http_variables.c v->valid = 1; v 1655 http/ngx_http_variables.c v->no_cacheable = 0; v 1656 http/ngx_http_variables.c v->not_found = 0; v 1657 http/ngx_http_variables.c v->data = p; v 1710 http/ngx_http_variables.c ngx_http_variable_not_found(ngx_http_request_t *r, ngx_http_variable_value_t *v, v 1713 http/ngx_http_variables.c v->not_found = 1; v 1725 http/ngx_http_variables.c ngx_http_variable_t *v; v 1772 http/ngx_http_variables.c v = ngx_http_add_variable(cf, &name, NGX_HTTP_VAR_CHANGEABLE); v 1773 http/ngx_http_variables.c if (v == NULL) { v 1782 http/ngx_http_variables.c v->get_handler = ngx_http_variable_not_found; v 1842 http/ngx_http_variables.c ngx_http_variable_t *v; v 1844 http/ngx_http_variables.c v = cmcf->variables.elts; v 1848 http/ngx_http_variables.c &v[index].name, vv->len, vv->data); v 1866 http/ngx_http_variables.c ngx_http_variable_t *v; v 1886 http/ngx_http_variables.c for (v = ngx_http_core_variables; v->name.len; v++) { v 1887 http/ngx_http_variables.c rc = ngx_hash_add_key(cmcf->variables_keys, &v->name, v, v 1896 http/ngx_http_variables.c "conflicting variable name \"%V\"", &v->name); v 1912 http/ngx_http_variables.c ngx_http_variable_t *v, *av; v 1919 http/ngx_http_variables.c v = cmcf->variables.elts; v 1929 http/ngx_http_variables.c && v[i].name.len == key[n].key.len v 1930 http/ngx_http_variables.c && ngx_strncmp(v[i].name.data, key[n].key.data, v[i].name.len) v 1933 http/ngx_http_variables.c v[i].get_handler = av->get_handler; v 1934 http/ngx_http_variables.c v[i].data = av->data; v 1937 http/ngx_http_variables.c v[i].flags = av->flags; v 1945 http/ngx_http_variables.c if (ngx_strncmp(v[i].name.data, "http_", 5) == 0) { v 1946 http/ngx_http_variables.c v[i].get_handler = ngx_http_variable_unknown_header_in; v 1947 http/ngx_http_variables.c v[i].data = (uintptr_t) &v[i].name; v 1952 http/ngx_http_variables.c if (ngx_strncmp(v[i].name.data, "sent_http_", 10) == 0) { v 1953 http/ngx_http_variables.c v[i].get_handler = ngx_http_variable_unknown_header_out; v 1954 http/ngx_http_variables.c v[i].data = (uintptr_t) &v[i].name; v 1959 http/ngx_http_variables.c if (ngx_strncmp(v[i].name.data, "upstream_http_", 14) == 0) { v 1960 http/ngx_http_variables.c v[i].get_handler = ngx_http_upstream_header_variable; v 1961 http/ngx_http_variables.c v[i].data = (uintptr_t) &v[i].name; v 1962 http/ngx_http_variables.c v[i].flags = NGX_HTTP_VAR_NOCACHEABLE; v 1967 http/ngx_http_variables.c if (ngx_strncmp(v[i].name.data, "cookie_", 7) == 0) { v 1968 http/ngx_http_variables.c v[i].get_handler = ngx_http_variable_cookie; v 1969 http/ngx_http_variables.c v[i].data = (uintptr_t) &v[i].name; v 1974 http/ngx_http_variables.c if (ngx_strncmp(v[i].name.data, "arg_", 4) == 0) { v 1975 http/ngx_http_variables.c v[i].get_handler = ngx_http_variable_argument; v 1976 http/ngx_http_variables.c v[i].data = (uintptr_t) &v[i].name; v 1977 http/ngx_http_variables.c v[i].flags = NGX_HTTP_VAR_NOCACHEABLE; v 1983 http/ngx_http_variables.c "unknown \"%V\" variable", &v[i].name); v 18 http/ngx_http_variables.h #define ngx_http_variable(v) { sizeof(v) - 1, 1, 0, 0, 0, (u_char *) v } v 23 http/ngx_http_variables.h ngx_http_variable_value_t *v, uintptr_t data); v 25 http/ngx_http_variables.h ngx_http_variable_value_t *v, uintptr_t data); v 55 http/ngx_http_variables.h ngx_int_t ngx_http_variable_unknown_header(ngx_http_variable_value_t *v,