comparison src/http/ngx_http_upstream.c @ 637:e60fe4cf1d4e release-0.3.40

nginx-0.3.40-RELEASE import *) Feature: the ngx_http_dav_module supports the MKCOL method. *) Feature: the "create_full_put_path" directive. *) Feature: the "$limit_rate" variable.
author Igor Sysoev <igor@sysoev.ru>
date Wed, 19 Apr 2006 15:30:56 +0000
parents 65bf042c0b4f
children 5e8fb59c18c1
comparison
equal deleted inserted replaced
636:21003753acbf 637:e60fe4cf1d4e
247 }; 247 };
248 248
249 249
250 static ngx_http_variable_t ngx_http_upstream_vars[] = { 250 static ngx_http_variable_t ngx_http_upstream_vars[] = {
251 251
252 { ngx_string("upstream_status"), 252 { ngx_string("upstream_status"), NULL,
253 ngx_http_upstream_status_variable, 0, NGX_HTTP_VAR_NOHASH, 0 }, 253 ngx_http_upstream_status_variable, 0, NGX_HTTP_VAR_NOHASH, 0 },
254 254
255 { ngx_string("upstream_response_time"), 255 { ngx_string("upstream_response_time"), NULL,
256 ngx_http_upstream_response_time_variable, 0, NGX_HTTP_VAR_NOHASH, 0 }, 256 ngx_http_upstream_response_time_variable, 0, NGX_HTTP_VAR_NOHASH, 0 },
257 257
258 { ngx_null_string, NULL, 0, 0, 0 } 258 { ngx_null_string, NULL, NULL, 0, 0, 0 }
259 }; 259 };
260 260
261 261
262 void 262 void
263 ngx_http_upstream_init(ngx_http_request_t *r) 263 ngx_http_upstream_init(ngx_http_request_t *r)
2397 var = ngx_http_add_variable(cf, &v->name, v->flags); 2397 var = ngx_http_add_variable(cf, &v->name, v->flags);
2398 if (var == NULL) { 2398 if (var == NULL) {
2399 return NGX_ERROR; 2399 return NGX_ERROR;
2400 } 2400 }
2401 2401
2402 var->handler = v->handler; 2402 var->get_handler = v->get_handler;
2403 var->data = v->data; 2403 var->data = v->data;
2404 } 2404 }
2405 2405
2406 for (op = ngx_http_upstream_log_fmt_ops; op->name.len; op++) { /* void */ } 2406 for (op = ngx_http_upstream_log_fmt_ops; op->name.len; op++) { /* void */ }
2407 op->run = NULL; 2407 op->run = NULL;