aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.h
diff options
context:
space:
mode:
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;