comparison src/http/modules/proxy/ngx_http_event_proxy_handler.h @ 72:66de3f065886

nginx-0.0.1-2003-04-09-19:42:08 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 09 Apr 2003 15:42:08 +0000
parents 59229033ae93
children 17ab1af8c3dd
comparison
equal deleted inserted replaced
71:59229033ae93 72:66de3f065886
9 9
10 #define NGX_HTTP_PROXY_PARSE_NO_HEADER 20 10 #define NGX_HTTP_PROXY_PARSE_NO_HEADER 20
11 #define NGX_HTTP_PARSE_TOO_LONG_STATUS_LINE 21 11 #define NGX_HTTP_PARSE_TOO_LONG_STATUS_LINE 21
12 12
13 typedef struct { 13 typedef struct {
14 int dummy; 14 ngx_table_elt_t *date;
15 ngx_table_elt_t *server;
16 ngx_table_elt_t *connection;
17 ngx_table_elt_t *content_type;
18 ngx_table_elt_t *content_length;
19 ngx_table_elt_t *last_modified;
20
21 ngx_table_t *headers;
15 } ngx_http_proxy_headers_in_t; 22 } ngx_http_proxy_headers_in_t;
16 23
17 24
18 typedef struct { 25 typedef struct {
19 u_int32_t addr; 26 u_int32_t addr;
86 struct ngx_http_proxy_ctx_s { 93 struct ngx_http_proxy_ctx_s {
87 ngx_chain_t *out; 94 ngx_chain_t *out;
88 95
89 int last_hunk; 96 int last_hunk;
90 ngx_array_t hunks; 97 ngx_array_t hunks;
91 int hunks_number; 98 int nhunks;
92 99
93 int hunk_n; 100 int hunk_n;
94 101
95 ngx_connection_t *connection; 102 ngx_connection_t *connection;
96 ngx_http_request_t *request; 103 ngx_http_request_t *request;
97 ngx_http_proxy_headers_in_t *headers_in; 104 ngx_http_proxy_headers_in_t headers_in;
98 105
99 ngx_http_proxy_upstream_url_t *upstream_url; 106 ngx_http_proxy_upstream_url_t *upstream_url;
100 ngx_http_proxy_upstreams_t *upstreams; 107 ngx_http_proxy_upstreams_t *upstreams;
101 int cur_upstream; 108 int cur_upstream;
102 int tries; 109 int tries;
122 int (*state_read_upstream_handler) (ngx_http_proxy_ctx_t *p); 129 int (*state_read_upstream_handler) (ngx_http_proxy_ctx_t *p);
123 int (*state_handler)(ngx_http_proxy_ctx_t *p); 130 int (*state_handler)(ngx_http_proxy_ctx_t *p);
124 131
125 int last_error; 132 int last_error;
126 133
134 unsigned accel:1;
135
127 unsigned cached_connection:1; 136 unsigned cached_connection:1;
128 }; 137 };
129 138
130 139
131 typedef struct { 140 typedef struct {