comparison src/http/ngx_http_request.h @ 200:abeaebe0a33c

nginx-0.0.1-2003-11-28-20:41:47 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 28 Nov 2003 17:41:47 +0000
parents 0b81c7a0b133
children 267ea1d98683
comparison
equal deleted inserted replaced
199:a65b630b3a66 200:abeaebe0a33c
142 time_t date_time; 142 time_t date_time;
143 time_t last_modified_time; 143 time_t last_modified_time;
144 } ngx_http_headers_out_t; 144 } ngx_http_headers_out_t;
145 145
146 146
147 typedef struct {
148 union {
149 struct {
150 ngx_fd_t fd;
151 char *name;
152 } file;
153
154 struct {
155 ngx_http_cache_hash_t *hash;
156 ngx_http_cache_t *cache;
157 } cache;
158 } data;
159
160 unsigned cache:1;
161 } ngx_http_cleanup_t;
162
163
147 typedef int (*ngx_http_handler_pt)(ngx_http_request_t *r); 164 typedef int (*ngx_http_handler_pt)(ngx_http_request_t *r);
148 165
149 struct ngx_http_request_s { 166 struct ngx_http_request_s {
150 ngx_connection_t *connection; 167 ngx_connection_t *connection;
151 168
152 void **ctx; 169 void **ctx;
153 void **main_conf; 170 void **main_conf;
154 void **srv_conf; 171 void **srv_conf;
155 void **loc_conf; 172 void **loc_conf;
156 173
157 ngx_http_cache_t *cache; 174 ngx_http_cache_t *cache;
158 175
159 ngx_file_t file; 176 ngx_file_t file;
160 177
161 ngx_pool_t *pool; 178 ngx_pool_t *pool;
162 ngx_hunk_t *header_in; 179 ngx_hunk_t *header_in;
196 ngx_chain_t *request_hunks; 213 ngx_chain_t *request_hunks;
197 ngx_hunk_t *request_body_hunk; 214 ngx_hunk_t *request_body_hunk;
198 int request_body_len; 215 int request_body_len;
199 void (*request_body_handler) (void *data); 216 void (*request_body_handler) (void *data);
200 void *data; 217 void *data;
218
219 ngx_array_t cleanup;
201 220
202 char *discarded_buffer; 221 char *discarded_buffer;
203 void **err_ctx; 222 void **err_ctx;
204 int err_status; 223 int err_status;
205 224