comparison src/http/ngx_http_upstream.h @ 200:d2ae1c9f1fd3 NGINX_0_3_47

nginx 0.3.47 *) Feature: the "upstream" directive. *) Change: now the "\" escape symbol in the "\"" and "\'" pairs in the SSI command is always removed.
author Igor Sysoev <http://sysoev.ru>
date Tue, 23 May 2006 00:00:00 +0400
parents e6da4931e0e0
children 3866d57d9cfd
comparison
equal deleted inserted replaced
199:869664706c09 200:d2ae1c9f1fd3
40 } ngx_http_upstream_state_t; 40 } ngx_http_upstream_state_t;
41 41
42 42
43 typedef struct { 43 typedef struct {
44 ngx_hash_t headers_in_hash; 44 ngx_hash_t headers_in_hash;
45 ngx_array_t upstreams;
46 /* ngx_http_upstream_srv_conf_t */
45 } ngx_http_upstream_main_conf_t; 47 } ngx_http_upstream_main_conf_t;
48
49
50 typedef struct {
51 ngx_peers_t *peers;
52
53 ngx_array_t *servers;
54
55 ngx_str_t host;
56 ngx_str_t file_name;
57 ngx_uint_t line;
58 in_port_t port;
59
60 ngx_uint_t balanced; /* unsigned balanced:1; */
61 } ngx_http_upstream_srv_conf_t;
46 62
47 63
48 typedef struct { 64 typedef struct {
49 ngx_msec_t connect_timeout; 65 ngx_msec_t connect_timeout;
50 ngx_msec_t send_timeout; 66 ngx_msec_t send_timeout;
197 unsigned header_sent:1; 213 unsigned header_sent:1;
198 }; 214 };
199 215
200 216
201 void ngx_http_upstream_init(ngx_http_request_t *r); 217 void ngx_http_upstream_init(ngx_http_request_t *r);
218 ngx_http_upstream_srv_conf_t *ngx_http_upstream_add(ngx_conf_t *cf,
219 ngx_url_t *u);
202 220
203 221
204 extern ngx_module_t ngx_http_upstream_module; 222 extern ngx_module_t ngx_http_upstream_module;
205 223
206 224