Mercurial > hg > nginx
comparison src/http/ngx_http_request.h @ 294:5cfd65b8b0a7
nginx-0.0.3-2004-03-23-09:01:52 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 23 Mar 2004 06:01:52 +0000 |
parents | ec3c049681fd |
children | bfe099e3f5b4 |
comparison
equal
deleted
inserted
replaced
293:ec3c049681fd | 294:5cfd65b8b0a7 |
---|---|
28 #define NGX_HTTP_PARSE_HEADER_ERROR 14 | 28 #define NGX_HTTP_PARSE_HEADER_ERROR 14 |
29 #define NGX_HTTP_PARSE_INVALID_HEADER 14 | 29 #define NGX_HTTP_PARSE_INVALID_HEADER 14 |
30 #define NGX_HTTP_PARSE_TOO_LONG_HEADER 15 | 30 #define NGX_HTTP_PARSE_TOO_LONG_HEADER 15 |
31 #define NGX_HTTP_PARSE_NO_HOST_HEADER 16 | 31 #define NGX_HTTP_PARSE_NO_HOST_HEADER 16 |
32 #define NGX_HTTP_PARSE_INVALID_CL_HEADER 17 | 32 #define NGX_HTTP_PARSE_INVALID_CL_HEADER 17 |
33 #define NGX_HTTP_PARSE_ENTITY_TOO_LARGE 18 | |
34 | 33 |
35 | 34 |
36 #define NGX_HTTP_OK 200 | 35 #define NGX_HTTP_OK 200 |
37 #define NGX_HTTP_PARTIAL_CONTENT 206 | 36 #define NGX_HTTP_PARTIAL_CONTENT 206 |
38 | 37 |
85 ngx_uint_t offset; | 84 ngx_uint_t offset; |
86 } ngx_http_header_t; | 85 } ngx_http_header_t; |
87 | 86 |
88 | 87 |
89 typedef struct { | 88 typedef struct { |
90 ngx_table_t *headers; /* it must be first field */ | 89 ngx_table_t headers; /* it must be first field */ |
91 | 90 |
92 ngx_table_elt_t *host; | 91 ngx_table_elt_t *host; |
93 ngx_table_elt_t *connection; | 92 ngx_table_elt_t *connection; |
94 ngx_table_elt_t *if_modified_since; | 93 ngx_table_elt_t *if_modified_since; |
95 ngx_table_elt_t *user_agent; | 94 ngx_table_elt_t *user_agent; |
135 ngx_str_t content_range; | 134 ngx_str_t content_range; |
136 } ngx_http_range_t; | 135 } ngx_http_range_t; |
137 | 136 |
138 | 137 |
139 typedef struct { | 138 typedef struct { |
140 ngx_table_t *headers; /* it must be first field */ | 139 ngx_table_t headers; /* it must be first field */ |
141 | 140 |
142 int status; | 141 int status; |
143 ngx_str_t status_line; | 142 ngx_str_t status_line; |
144 | 143 |
145 ngx_table_elt_t *server; | 144 ngx_table_elt_t *server; |
263 | 262 |
264 unsigned chunked:1; | 263 unsigned chunked:1; |
265 unsigned header_only:1; | 264 unsigned header_only:1; |
266 unsigned keepalive:1; | 265 unsigned keepalive:1; |
267 unsigned lingering_close:1; | 266 unsigned lingering_close:1; |
268 #if 0 | |
269 unsigned closed:1; | 267 unsigned closed:1; |
270 #endif | |
271 | 268 |
272 /* TODO: use the filter flags or the separate bits ???? */ | 269 /* TODO: use the filter flags or the separate bits ???? */ |
273 u_int filter; | 270 u_int filter; |
274 | 271 |
275 /* used to parse HTTP headers */ | 272 /* used to parse HTTP headers */ |