Mercurial > hg > nginx-quic
comparison src/http/ngx_http_upstream.h @ 651:39b7d7b33c91 release-0.3.47
nginx-0.3.47-RELEASE import
*) Feature: the "upstream" directive.
*) Change: now the "\" escape symbol in the "\"" and "\'" pairs in the
SSI command is always removed.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 23 May 2006 14:54:58 +0000 |
parents | 1e720b0be7ec |
children | 400711951595 |
comparison
equal
deleted
inserted
replaced
650:d865681780b6 | 651:39b7d7b33c91 |
---|---|
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 |