aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-28 17:41:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-11-28 17:41:47 +0000
commitc2bba092eb07ea5fcd2e2ee987e3a304f755a3c7 (patch)
treed2c80489d1fe646f689966411fc8659355acbd40 /src/http/ngx_http_request.h
parent877df63f345e48bc2cb61dde86a207748051b81a (diff)
downloadnginx-c2bba092eb07ea5fcd2e2ee987e3a304f755a3c7.tar.gz
nginx-c2bba092eb07ea5fcd2e2ee987e3a304f755a3c7.zip
nginx-0.0.1-2003-11-28-20:41:47 import
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r--src/http/ngx_http_request.h31
1 files changed, 25 insertions, 6 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index 3b62d58e7..08afcd53e 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -144,17 +144,34 @@ typedef struct {
} ngx_http_headers_out_t;
+typedef struct {
+ union {
+ struct {
+ ngx_fd_t fd;
+ char *name;
+ } file;
+
+ struct {
+ ngx_http_cache_hash_t *hash;
+ ngx_http_cache_t *cache;
+ } cache;
+ } data;
+
+ unsigned cache:1;
+} ngx_http_cleanup_t;
+
+
typedef int (*ngx_http_handler_pt)(ngx_http_request_t *r);
struct ngx_http_request_s {
- ngx_connection_t *connection;
+ ngx_connection_t *connection;
- void **ctx;
- void **main_conf;
- void **srv_conf;
- void **loc_conf;
+ void **ctx;
+ void **main_conf;
+ void **srv_conf;
+ void **loc_conf;
- ngx_http_cache_t *cache;
+ ngx_http_cache_t *cache;
ngx_file_t file;
@@ -199,6 +216,8 @@ struct ngx_http_request_s {
void (*request_body_handler) (void *data);
void *data;
+ ngx_array_t cleanup;
+
char *discarded_buffer;
void **err_ctx;
int err_status;