Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r--src/http/ngx_http_request.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index a05b97c48..5c7ffb726 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -68,6 +68,8 @@ typedef struct {
typedef struct {
+ ngx_table_t *headers; /* it must be first field */
+
ngx_table_elt_t *host;
ngx_table_elt_t *connection;
ngx_table_elt_t *if_modified_since;
@@ -83,8 +85,6 @@ typedef struct {
ssize_t content_length_n;
size_t connection_type;
ssize_t keep_alive_n;
-
- ngx_table_t *headers;
} ngx_http_headers_in_t;
@@ -108,6 +108,8 @@ typedef struct {
typedef struct {
+ ngx_table_t *headers; /* it must be first field */
+
int status;
ngx_str_t status_line;
@@ -124,8 +126,6 @@ typedef struct {
ngx_str_t charset;
ngx_array_t ranges;
- ngx_table_t *headers;
-
off_t content_length_n;
char *etag;
time_t date_time;
@@ -231,4 +231,9 @@ struct ngx_http_request_s {
};
+extern ngx_http_header_t ngx_http_headers_in[];
+extern ngx_http_header_t ngx_http_headers_out[];
+
+
+
#endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */