comparison src/http/ngx_http_upstream.c @ 186:54aabf2b0bc6 NGINX_0_3_40

nginx 0.3.40 *) 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 <http://sysoev.ru>
date Wed, 19 Apr 2006 00:00:00 +0400
parents 87699398f955
children 3689cd4e3228
comparison
equal deleted inserted replaced
185:a9c5dc369ffe 186:54aabf2b0bc6
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;