Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request.h @ 143:5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 10 Oct 2003 15:10:50 +0000 |
parents | 656d468f4ead |
children | ef8c87afcfc5 |
comparison
equal
deleted
inserted
replaced
142:cb77c084acdb | 143:5526213be452 |
---|---|
124 } ngx_http_headers_out_t; | 124 } ngx_http_headers_out_t; |
125 | 125 |
126 | 126 |
127 typedef struct ngx_http_request_s ngx_http_request_t; | 127 typedef struct ngx_http_request_s ngx_http_request_t; |
128 | 128 |
129 typedef int (*ngx_http_handler_pt)(ngx_http_request_t *r); | |
130 | |
129 struct ngx_http_request_s { | 131 struct ngx_http_request_s { |
130 ngx_connection_t *connection; | 132 ngx_connection_t *connection; |
131 | 133 |
132 void **ctx; | 134 void **ctx; |
133 void **main_conf; | 135 void **main_conf; |
140 ngx_hunk_t *header_in; | 142 ngx_hunk_t *header_in; |
141 ngx_http_request_body_t *request_body; | 143 ngx_http_request_body_t *request_body; |
142 | 144 |
143 ngx_http_headers_in_t headers_in; | 145 ngx_http_headers_in_t headers_in; |
144 ngx_http_headers_out_t headers_out; | 146 ngx_http_headers_out_t headers_out; |
145 | |
146 int (*handler)(ngx_http_request_t *r); | |
147 | 147 |
148 time_t lingering_time; | 148 time_t lingering_time; |
149 | 149 |
150 int method; | 150 int method; |
151 int http_version; | 151 int http_version; |
164 int port; | 164 int port; |
165 ngx_str_t *port_name; /* ":80" */ | 165 ngx_str_t *port_name; /* ":80" */ |
166 ngx_str_t *server_name; | 166 ngx_str_t *server_name; |
167 ngx_array_t *virtual_names; | 167 ngx_array_t *virtual_names; |
168 | 168 |
169 int phase; | |
170 int phase_handler; | |
171 ngx_http_handler_pt content_handler; | |
169 | 172 |
170 char *discarded_buffer; | 173 char *discarded_buffer; |
171 | 174 |
172 ngx_str_t path; | 175 ngx_str_t path; |
173 int path_err; | 176 int path_err; |
186 | 189 |
187 unsigned chunked:1; | 190 unsigned chunked:1; |
188 unsigned header_only:1; | 191 unsigned header_only:1; |
189 unsigned keepalive:1; | 192 unsigned keepalive:1; |
190 unsigned lingering_close:1; | 193 unsigned lingering_close:1; |
194 unsigned closed:1; | |
191 | 195 |
192 /* TODO: use filter or bits ???? */ | 196 /* TODO: use filter or bits ???? */ |
193 int filter; | 197 int filter; |
194 | 198 |
195 /* used to parse HTTP headers */ | 199 /* used to parse HTTP headers */ |