Mercurial > hg > nginx-ranges
comparison src/http/ngx_http_request.h @ 635:e67b227c8dbb default tip
Merge with current.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 25 Apr 2011 04:07:55 +0400 |
parents | f3a9e57d2e17 ce857f6b74a7 |
children |
comparison
equal
deleted
inserted
replaced
578:f3a9e57d2e17 | 635:e67b227c8dbb |
---|---|
35 #define NGX_HTTP_OPTIONS 0x0200 | 35 #define NGX_HTTP_OPTIONS 0x0200 |
36 #define NGX_HTTP_PROPFIND 0x0400 | 36 #define NGX_HTTP_PROPFIND 0x0400 |
37 #define NGX_HTTP_PROPPATCH 0x0800 | 37 #define NGX_HTTP_PROPPATCH 0x0800 |
38 #define NGX_HTTP_LOCK 0x1000 | 38 #define NGX_HTTP_LOCK 0x1000 |
39 #define NGX_HTTP_UNLOCK 0x2000 | 39 #define NGX_HTTP_UNLOCK 0x2000 |
40 #define NGX_HTTP_TRACE 0x4000 | 40 #define NGX_HTTP_PATCH 0x4000 |
41 #define NGX_HTTP_TRACE 0x8000 | |
41 | 42 |
42 #define NGX_HTTP_CONNECTION_CLOSE 1 | 43 #define NGX_HTTP_CONNECTION_CLOSE 1 |
43 #define NGX_HTTP_CONNECTION_KEEP_ALIVE 2 | 44 #define NGX_HTTP_CONNECTION_KEEP_ALIVE 2 |
44 | 45 |
45 | 46 |
54 #define NGX_HTTP_PARSE_INVALID_09_METHOD 12 | 55 #define NGX_HTTP_PARSE_INVALID_09_METHOD 12 |
55 | 56 |
56 #define NGX_HTTP_PARSE_INVALID_HEADER 13 | 57 #define NGX_HTTP_PARSE_INVALID_HEADER 13 |
57 | 58 |
58 | 59 |
59 #define NGX_HTTP_ZERO_IN_URI 1 | 60 /* unused 1 */ |
60 #define NGX_HTTP_SUBREQUEST_IN_MEMORY 2 | 61 #define NGX_HTTP_SUBREQUEST_IN_MEMORY 2 |
61 #define NGX_HTTP_SUBREQUEST_WAITED 4 | 62 #define NGX_HTTP_SUBREQUEST_WAITED 4 |
62 #define NGX_HTTP_LOG_UNSAFE 8 | 63 #define NGX_HTTP_LOG_UNSAFE 8 |
63 | 64 |
64 | 65 |
65 #define NGX_HTTP_OK 200 | 66 #define NGX_HTTP_OK 200 |
66 #define NGX_HTTP_CREATED 201 | 67 #define NGX_HTTP_CREATED 201 |
68 #define NGX_HTTP_ACCEPTED 202 | |
67 #define NGX_HTTP_NO_CONTENT 204 | 69 #define NGX_HTTP_NO_CONTENT 204 |
68 #define NGX_HTTP_PARTIAL_CONTENT 206 | 70 #define NGX_HTTP_PARTIAL_CONTENT 206 |
69 | 71 |
70 #define NGX_HTTP_SPECIAL_RESPONSE 300 | 72 #define NGX_HTTP_SPECIAL_RESPONSE 300 |
71 #define NGX_HTTP_MOVED_PERMANENTLY 301 | 73 #define NGX_HTTP_MOVED_PERMANENTLY 301 |
72 #define NGX_HTTP_MOVED_TEMPORARILY 302 | 74 #define NGX_HTTP_MOVED_TEMPORARILY 302 |
75 #define NGX_HTTP_SEE_OTHER 303 | |
73 #define NGX_HTTP_NOT_MODIFIED 304 | 76 #define NGX_HTTP_NOT_MODIFIED 304 |
74 | 77 |
75 #define NGX_HTTP_BAD_REQUEST 400 | 78 #define NGX_HTTP_BAD_REQUEST 400 |
76 #define NGX_HTTP_UNAUTHORIZED 401 | 79 #define NGX_HTTP_UNAUTHORIZED 401 |
77 #define NGX_HTTP_FORBIDDEN 403 | 80 #define NGX_HTTP_FORBIDDEN 403 |
90 /* Our own HTTP codes */ | 93 /* Our own HTTP codes */ |
91 | 94 |
92 /* The special code to close connection without any response */ | 95 /* The special code to close connection without any response */ |
93 #define NGX_HTTP_CLOSE 444 | 96 #define NGX_HTTP_CLOSE 444 |
94 | 97 |
95 #define NGX_HTTP_OWN_CODES 495 | 98 #define NGX_HTTP_NGINX_CODES 494 |
99 | |
100 #define NGX_HTTP_REQUEST_HEADER_TOO_LARGE 494 | |
96 | 101 |
97 #define NGX_HTTPS_CERT_ERROR 495 | 102 #define NGX_HTTPS_CERT_ERROR 495 |
98 #define NGX_HTTPS_NO_CERT 496 | 103 #define NGX_HTTPS_NO_CERT 496 |
99 | 104 |
100 /* | 105 /* |
162 ngx_list_t headers; | 167 ngx_list_t headers; |
163 | 168 |
164 ngx_table_elt_t *host; | 169 ngx_table_elt_t *host; |
165 ngx_table_elt_t *connection; | 170 ngx_table_elt_t *connection; |
166 ngx_table_elt_t *if_modified_since; | 171 ngx_table_elt_t *if_modified_since; |
172 ngx_table_elt_t *if_unmodified_since; | |
167 ngx_table_elt_t *user_agent; | 173 ngx_table_elt_t *user_agent; |
168 ngx_table_elt_t *referer; | 174 ngx_table_elt_t *referer; |
169 ngx_table_elt_t *content_length; | 175 ngx_table_elt_t *content_length; |
170 ngx_table_elt_t *content_type; | 176 ngx_table_elt_t *content_type; |
171 | 177 |
433 unsigned quoted_uri:1; | 439 unsigned quoted_uri:1; |
434 | 440 |
435 /* URI with "+" */ | 441 /* URI with "+" */ |
436 unsigned plus_in_uri:1; | 442 unsigned plus_in_uri:1; |
437 | 443 |
438 /* URI with "\0" or "%00" */ | 444 /* URI with " " */ |
439 unsigned zero_in_uri:1; | 445 unsigned space_in_uri:1; |
440 | 446 |
441 unsigned invalid_header:1; | 447 unsigned invalid_header:1; |
442 | 448 |
449 unsigned add_uri_to_alias:1; | |
443 unsigned valid_location:1; | 450 unsigned valid_location:1; |
444 unsigned valid_unparsed_uri:1; | 451 unsigned valid_unparsed_uri:1; |
445 unsigned uri_changed:1; | 452 unsigned uri_changed:1; |
446 unsigned uri_changes:4; | 453 unsigned uri_changes:4; |
447 | 454 |
483 | 490 |
484 unsigned pipeline:1; | 491 unsigned pipeline:1; |
485 unsigned plain_http:1; | 492 unsigned plain_http:1; |
486 unsigned chunked:1; | 493 unsigned chunked:1; |
487 unsigned header_only:1; | 494 unsigned header_only:1; |
488 unsigned zero_body:1; | |
489 unsigned keepalive:1; | 495 unsigned keepalive:1; |
490 unsigned lingering_close:1; | 496 unsigned lingering_close:1; |
491 unsigned discard_body:1; | 497 unsigned discard_body:1; |
492 unsigned internal:1; | 498 unsigned internal:1; |
493 unsigned error_page:1; | 499 unsigned error_page:1; |