Mercurial > hg > nginx-quic
annotate src/http/ngx_http_request.h @ 1436:ccbf588fb517
win32 ngx_is_exec() stub
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 30 Aug 2007 18:57:38 +0000 |
parents | cb8b30ef3e7e |
children | 4c43e25d11ea |
rev | line source |
---|---|
441
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
436
diff
changeset
|
1 |
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
436
diff
changeset
|
2 /* |
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
441
diff
changeset
|
3 * Copyright (C) Igor Sysoev |
441
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
436
diff
changeset
|
4 */ |
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
436
diff
changeset
|
5 |
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
436
diff
changeset
|
6 |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
7 #ifndef _NGX_HTTP_REQUEST_H_INCLUDED_ |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
8 #define _NGX_HTTP_REQUEST_H_INCLUDED_ |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
9 |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
10 |
651 | 11 #define NGX_HTTP_MAX_URI_CHANGES 10 |
657 | 12 #define NGX_HTTP_MAX_SUBREQUESTS 50 |
509 | 13 |
649 | 14 /* must be 2^n */ |
15 #define NGX_HTTP_LC_HEADER_LEN 32 | |
16 | |
509 | 17 |
436
9549fc9508e5
nginx-0.0.11-2004-09-23-10:32:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
435
diff
changeset
|
18 #define NGX_HTTP_DISCARD_BUFFER_SIZE 4096 |
9549fc9508e5
nginx-0.0.11-2004-09-23-10:32:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
435
diff
changeset
|
19 #define NGX_HTTP_LINGERING_BUFFER_SIZE 4096 |
9549fc9508e5
nginx-0.0.11-2004-09-23-10:32:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
435
diff
changeset
|
20 |
9549fc9508e5
nginx-0.0.11-2004-09-23-10:32:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
435
diff
changeset
|
21 |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
287
diff
changeset
|
22 #define NGX_HTTP_VERSION_9 9 |
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
287
diff
changeset
|
23 #define NGX_HTTP_VERSION_10 1000 |
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
287
diff
changeset
|
24 #define NGX_HTTP_VERSION_11 1001 |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
25 |
633 | 26 #define NGX_HTTP_UNKNOWN 0x0001 |
27 #define NGX_HTTP_GET 0x0002 | |
28 #define NGX_HTTP_HEAD 0x0004 | |
29 #define NGX_HTTP_POST 0x0008 | |
30 #define NGX_HTTP_PUT 0x0010 | |
31 #define NGX_HTTP_DELETE 0x0020 | |
637 | 32 #define NGX_HTTP_MKCOL 0x0040 |
844 | 33 #define NGX_HTTP_COPY 0x0080 |
34 #define NGX_HTTP_MOVE 0x0100 | |
35 #define NGX_HTTP_OPTIONS 0x0200 | |
36 #define NGX_HTTP_PROPFIND 0x0400 | |
37 #define NGX_HTTP_PROPPATCH 0x0800 | |
38 #define NGX_HTTP_LOCK 0x1000 | |
39 #define NGX_HTTP_UNLOCK 0x2000 | |
1151 | 40 #define NGX_HTTP_TRACE 0x4000 |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
41 |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
287
diff
changeset
|
42 #define NGX_HTTP_CONNECTION_CLOSE 1 |
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
287
diff
changeset
|
43 #define NGX_HTTP_CONNECTION_KEEP_ALIVE 2 |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
44 |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
45 |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
287
diff
changeset
|
46 #define NGX_NONE 1 |
141
656d468f4ead
nginx-0.0.1-2003-10-08-19:32:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
136
diff
changeset
|
47 |
656d468f4ead
nginx-0.0.1-2003-10-08-19:32:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
136
diff
changeset
|
48 |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
287
diff
changeset
|
49 #define NGX_HTTP_PARSE_HEADER_DONE 1 |
160
e7e094d34162
nginx-0.0.1-2003-10-27-11:53:49 import
Igor Sysoev <igor@sysoev.ru>
parents:
155
diff
changeset
|
50 |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
287
diff
changeset
|
51 #define NGX_HTTP_CLIENT_ERROR 10 |
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
287
diff
changeset
|
52 #define NGX_HTTP_PARSE_INVALID_METHOD 10 |
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
287
diff
changeset
|
53 #define NGX_HTTP_PARSE_INVALID_REQUEST 11 |
505 | 54 #define NGX_HTTP_PARSE_INVALID_09_METHOD 12 |
160
e7e094d34162
nginx-0.0.1-2003-10-27-11:53:49 import
Igor Sysoev <igor@sysoev.ru>
parents:
155
diff
changeset
|
55 |
505 | 56 #define NGX_HTTP_PARSE_INVALID_HEADER 13 |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
57 |
777
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
58 |
573 | 59 #define NGX_HTTP_ZERO_IN_URI 1 |
777
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
60 #define NGX_HTTP_SUBREQUEST_IN_MEMORY 2 |
573 | 61 |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
62 |
162
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
63 #define NGX_HTTP_OK 200 |
633 | 64 #define NGX_HTTP_CREATED 201 |
511 | 65 #define NGX_HTTP_NO_CONTENT 204 |
162
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
66 #define NGX_HTTP_PARTIAL_CONTENT 206 |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
67 |
162
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
68 #define NGX_HTTP_SPECIAL_RESPONSE 300 |
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
69 #define NGX_HTTP_MOVED_PERMANENTLY 301 |
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
70 #define NGX_HTTP_MOVED_TEMPORARILY 302 |
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
71 #define NGX_HTTP_NOT_MODIFIED 304 |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
72 |
162
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
73 #define NGX_HTTP_BAD_REQUEST 400 |
503 | 74 #define NGX_HTTP_UNAUTHORIZED 401 |
162
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
75 #define NGX_HTTP_FORBIDDEN 403 |
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
76 #define NGX_HTTP_NOT_FOUND 404 |
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
77 #define NGX_HTTP_NOT_ALLOWED 405 |
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
78 #define NGX_HTTP_REQUEST_TIME_OUT 408 |
637 | 79 #define NGX_HTTP_CONFLICT 409 |
581 | 80 #define NGX_HTTP_LENGTH_REQUIRED 411 |
1057 | 81 #define NGX_HTTP_PRECONDITION_FAILED 412 |
162
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
82 #define NGX_HTTP_REQUEST_ENTITY_TOO_LARGE 413 |
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
83 #define NGX_HTTP_REQUEST_URI_TOO_LARGE 414 |
637 | 84 #define NGX_HTTP_UNSUPPORTED_MEDIA_TYPE 415 |
162
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
85 #define NGX_HTTP_RANGE_NOT_SATISFIABLE 416 |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
86 |
335
d4241d7787fe
nginx-0.0.3-2004-05-14-20:51:47 import
Igor Sysoev <igor@sysoev.ru>
parents:
315
diff
changeset
|
87 |
d4241d7787fe
nginx-0.0.3-2004-05-14-20:51:47 import
Igor Sysoev <igor@sysoev.ru>
parents:
315
diff
changeset
|
88 /* Our own HTTP codes */ |
d4241d7787fe
nginx-0.0.3-2004-05-14-20:51:47 import
Igor Sysoev <igor@sysoev.ru>
parents:
315
diff
changeset
|
89 |
587 | 90 /* The special code to close connection without any response */ |
91 #define NGX_HTTP_CLOSE 444 | |
92 | |
647 | 93 #define NGX_HTTP_OWN_CODES 495 |
94 | |
95 #define NGX_HTTPS_CERT_ERROR 495 | |
96 #define NGX_HTTPS_NO_CERT 496 | |
384
e7054aaedf68
nginx-0.0.7-2004-07-09-11:12:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
367
diff
changeset
|
97 |
e7054aaedf68
nginx-0.0.7-2004-07-09-11:12:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
367
diff
changeset
|
98 /* |
e7054aaedf68
nginx-0.0.7-2004-07-09-11:12:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
367
diff
changeset
|
99 * We use the special code for the plain HTTP requests that are sent to |
577 | 100 * HTTPS port to distinguish it from 4XX in an error page redirection |
384
e7054aaedf68
nginx-0.0.7-2004-07-09-11:12:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
367
diff
changeset
|
101 */ |
e7054aaedf68
nginx-0.0.7-2004-07-09-11:12:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
367
diff
changeset
|
102 #define NGX_HTTP_TO_HTTPS 497 |
335
d4241d7787fe
nginx-0.0.3-2004-05-14-20:51:47 import
Igor Sysoev <igor@sysoev.ru>
parents:
315
diff
changeset
|
103 |
613 | 104 /* 498 is the canceled code for the requests with invalid host name */ |
335
d4241d7787fe
nginx-0.0.3-2004-05-14-20:51:47 import
Igor Sysoev <igor@sysoev.ru>
parents:
315
diff
changeset
|
105 |
189
c966c09be66b
nginx-0.0.1-2003-11-18-19:49:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
179
diff
changeset
|
106 /* |
232
03c54b6d7a6f
nginx-0.0.1-2004-01-19-00:09:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
216
diff
changeset
|
107 * HTTP does not define the code for the case when a client closed |
03c54b6d7a6f
nginx-0.0.1-2004-01-19-00:09:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
216
diff
changeset
|
108 * the connection while we are processing its request so we introduce |
03c54b6d7a6f
nginx-0.0.1-2004-01-19-00:09:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
216
diff
changeset
|
109 * own code to log such situation when a client has closed the connection |
03c54b6d7a6f
nginx-0.0.1-2004-01-19-00:09:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
216
diff
changeset
|
110 * before we even try to send the HTTP header to it |
189
c966c09be66b
nginx-0.0.1-2003-11-18-19:49:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
179
diff
changeset
|
111 */ |
190
02a715e85df1
nginx-0.0.1-2003-11-19-00:34:08 import
Igor Sysoev <igor@sysoev.ru>
parents:
189
diff
changeset
|
112 #define NGX_HTTP_CLIENT_CLOSED_REQUEST 499 |
189
c966c09be66b
nginx-0.0.1-2003-11-18-19:49:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
179
diff
changeset
|
113 |
335
d4241d7787fe
nginx-0.0.3-2004-05-14-20:51:47 import
Igor Sysoev <igor@sysoev.ru>
parents:
315
diff
changeset
|
114 |
162
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
115 #define NGX_HTTP_INTERNAL_SERVER_ERROR 500 |
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
116 #define NGX_HTTP_NOT_IMPLEMENTED 501 |
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
117 #define NGX_HTTP_BAD_GATEWAY 502 |
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
118 #define NGX_HTTP_SERVICE_UNAVAILABLE 503 |
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
160
diff
changeset
|
119 #define NGX_HTTP_GATEWAY_TIME_OUT 504 |
637 | 120 #define NGX_HTTP_INSUFFICIENT_STORAGE 507 |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
121 |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
122 |
829
362d156f0278
high level HTTP buffered flags should be on per-subrequest basis,
Igor Sysoev <igor@sysoev.ru>
parents:
777
diff
changeset
|
123 #define NGX_HTTP_LOWLEVEL_BUFFERED 0xf0 |
362d156f0278
high level HTTP buffered flags should be on per-subrequest basis,
Igor Sysoev <igor@sysoev.ru>
parents:
777
diff
changeset
|
124 #define NGX_HTTP_WRITE_BUFFERED 0x10 |
362d156f0278
high level HTTP buffered flags should be on per-subrequest basis,
Igor Sysoev <igor@sysoev.ru>
parents:
777
diff
changeset
|
125 #define NGX_HTTP_GZIP_BUFFERED 0x20 |
362d156f0278
high level HTTP buffered flags should be on per-subrequest basis,
Igor Sysoev <igor@sysoev.ru>
parents:
777
diff
changeset
|
126 #define NGX_HTTP_SSI_BUFFERED 0x01 |
1172 | 127 #define NGX_HTTP_SUB_BUFFERED 0x02 |
128 #define NGX_HTTP_COPY_BUFFERED 0x04 | |
597 | 129 |
130 | |
216
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
131 typedef enum { |
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
132 NGX_HTTP_INITING_REQUEST_STATE = 0, |
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
133 NGX_HTTP_READING_REQUEST_STATE, |
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
134 NGX_HTTP_PROCESS_REQUEST_STATE, |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
135 |
216
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
136 NGX_HTTP_CONNECT_UPSTREAM_STATE, |
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
137 NGX_HTTP_WRITING_UPSTREAM_STATE, |
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
138 NGX_HTTP_READING_UPSTREAM_STATE, |
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
139 |
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
140 NGX_HTTP_WRITING_REQUEST_STATE, |
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
141 NGX_HTTP_LINGERING_CLOSE_STATE, |
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
142 NGX_HTTP_KEEPALIVE_STATE |
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
143 } ngx_http_state_e; |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
144 |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
145 |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
146 typedef struct { |
501 | 147 ngx_str_t name; |
148 ngx_uint_t offset; | |
509 | 149 ngx_http_header_handler_pt handler; |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
150 } ngx_http_header_t; |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
151 |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
152 |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
153 typedef struct { |
509 | 154 ngx_str_t name; |
155 ngx_uint_t offset; | |
569 | 156 } ngx_http_header_out_t; |
509 | 157 |
158 | |
159 typedef struct { | |
501 | 160 ngx_list_t headers; |
164
84036764e215
nginx-0.0.1-2003-10-29-11:30:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
162
diff
changeset
|
161 |
501 | 162 ngx_table_elt_t *host; |
163 ngx_table_elt_t *connection; | |
164 ngx_table_elt_t *if_modified_since; | |
165 ngx_table_elt_t *user_agent; | |
166 ngx_table_elt_t *referer; | |
167 ngx_table_elt_t *content_length; | |
168 ngx_table_elt_t *content_type; | |
155
46eb23d9471d
nginx-0.0.1-2003-10-22-20:38:26 import
Igor Sysoev <igor@sysoev.ru>
parents:
154
diff
changeset
|
169 |
501 | 170 ngx_table_elt_t *range; |
287
35a6a9df2d25
nginx-0.0.2-2004-03-12-19:57:08 import
Igor Sysoev <igor@sysoev.ru>
parents:
232
diff
changeset
|
171 |
581 | 172 ngx_table_elt_t *transfer_encoding; |
173 | |
287
35a6a9df2d25
nginx-0.0.2-2004-03-12-19:57:08 import
Igor Sysoev <igor@sysoev.ru>
parents:
232
diff
changeset
|
174 #if (NGX_HTTP_GZIP) |
501 | 175 ngx_table_elt_t *accept_encoding; |
176 ngx_table_elt_t *via; | |
287
35a6a9df2d25
nginx-0.0.2-2004-03-12-19:57:08 import
Igor Sysoev <igor@sysoev.ru>
parents:
232
diff
changeset
|
177 #endif |
99
a059e1aa65d4
nginx-0.0.1-2003-06-02-19:24:30 import
Igor Sysoev <igor@sysoev.ru>
parents:
96
diff
changeset
|
178 |
501 | 179 ngx_table_elt_t *authorization; |
172
caa57ddf6d77
nginx-0.0.1-2003-11-04-01:20:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
170
diff
changeset
|
180 |
501 | 181 ngx_table_elt_t *keep_alive; |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
182 |
573 | 183 #if (NGX_HTTP_PROXY || NGX_HTTP_REALIP) |
501 | 184 ngx_table_elt_t *x_forwarded_for; |
287
35a6a9df2d25
nginx-0.0.2-2004-03-12-19:57:08 import
Igor Sysoev <igor@sysoev.ru>
parents:
232
diff
changeset
|
185 #endif |
35a6a9df2d25
nginx-0.0.2-2004-03-12-19:57:08 import
Igor Sysoev <igor@sysoev.ru>
parents:
232
diff
changeset
|
186 |
573 | 187 #if (NGX_HTTP_REALIP) |
188 ngx_table_elt_t *x_real_ip; | |
189 #endif | |
190 | |
489 | 191 #if (NGX_HTTP_HEADERS) |
501 | 192 ngx_table_elt_t *accept; |
193 ngx_table_elt_t *accept_language; | |
489 | 194 #endif |
195 | |
637 | 196 #if (NGX_HTTP_DAV) |
197 ngx_table_elt_t *depth; | |
198 ngx_table_elt_t *destination; | |
1059 | 199 ngx_table_elt_t *overwrite; |
681 | 200 ngx_table_elt_t *date; |
637 | 201 #endif |
202 | |
503 | 203 ngx_str_t user; |
204 ngx_str_t passwd; | |
205 | |
501 | 206 ngx_array_t cookies; |
207 | |
208 size_t host_name_len; | |
663 | 209 off_t content_length_n; |
501 | 210 time_t keep_alive_n; |
408
d6e2b445c1b8
nginx-0.0.10-2004-08-27-19:40:59 import
Igor Sysoev <igor@sysoev.ru>
parents:
396
diff
changeset
|
211 |
501 | 212 unsigned connection_type:2; |
213 unsigned msie:1; | |
214 unsigned msie4:1; | |
215 unsigned opera:1; | |
216 unsigned gecko:1; | |
217 unsigned konqueror:1; | |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
218 } ngx_http_headers_in_t; |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
219 |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
220 |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
221 typedef struct { |
501 | 222 ngx_list_t headers; |
164
84036764e215
nginx-0.0.1-2003-10-29-11:30:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
162
diff
changeset
|
223 |
501 | 224 ngx_uint_t status; |
225 ngx_str_t status_line; | |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
226 |
501 | 227 ngx_table_elt_t *server; |
228 ngx_table_elt_t *date; | |
229 ngx_table_elt_t *content_length; | |
230 ngx_table_elt_t *content_encoding; | |
231 ngx_table_elt_t *location; | |
232 ngx_table_elt_t *last_modified; | |
233 ngx_table_elt_t *content_range; | |
234 ngx_table_elt_t *accept_ranges; | |
503 | 235 ngx_table_elt_t *www_authenticate; |
501 | 236 ngx_table_elt_t *expires; |
237 ngx_table_elt_t *etag; | |
99
a059e1aa65d4
nginx-0.0.1-2003-06-02-19:24:30 import
Igor Sysoev <igor@sysoev.ru>
parents:
96
diff
changeset
|
238 |
657 | 239 ngx_str_t *override_charset; |
240 | |
241 size_t content_type_len; | |
509 | 242 ngx_str_t content_type; |
501 | 243 ngx_str_t charset; |
657 | 244 |
509 | 245 ngx_array_t cache_control; |
246 | |
501 | 247 off_t content_length_n; |
248 time_t date_time; | |
249 time_t last_modified_time; | |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
250 } ngx_http_headers_out_t; |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
251 |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
252 |
479 | 253 typedef void (*ngx_http_client_body_handler_pt)(ngx_http_request_t *r); |
254 | |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
296
diff
changeset
|
255 typedef struct { |
479 | 256 ngx_temp_file_t *temp_file; |
257 ngx_chain_t *bufs; | |
258 ngx_buf_t *buf; | |
663 | 259 off_t rest; |
633 | 260 ngx_chain_t *to_write; |
479 | 261 ngx_http_client_body_handler_pt post_handler; |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
296
diff
changeset
|
262 } ngx_http_request_body_t; |
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
296
diff
changeset
|
263 |
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
296
diff
changeset
|
264 |
432
11362a3e3911
nginx-0.0.11-2004-09-21-09:38:28 import
Igor Sysoev <igor@sysoev.ru>
parents:
429
diff
changeset
|
265 typedef struct { |
501 | 266 ngx_http_request_t *request; |
433
9a97dcdd2421
nginx-0.0.11-2004-09-21-19:47:05 import
Igor Sysoev <igor@sysoev.ru>
parents:
432
diff
changeset
|
267 |
501 | 268 ngx_buf_t **busy; |
269 ngx_int_t nbusy; | |
433
9a97dcdd2421
nginx-0.0.11-2004-09-21-19:47:05 import
Igor Sysoev <igor@sysoev.ru>
parents:
432
diff
changeset
|
270 |
501 | 271 ngx_buf_t **free; |
272 ngx_int_t nfree; | |
433
9a97dcdd2421
nginx-0.0.11-2004-09-21-19:47:05 import
Igor Sysoev <igor@sysoev.ru>
parents:
432
diff
changeset
|
273 |
501 | 274 ngx_uint_t pipeline; /* unsigned pipeline:1; */ |
432
11362a3e3911
nginx-0.0.11-2004-09-21-09:38:28 import
Igor Sysoev <igor@sysoev.ru>
parents:
429
diff
changeset
|
275 } ngx_http_connection_t; |
11362a3e3911
nginx-0.0.11-2004-09-21-09:38:28 import
Igor Sysoev <igor@sysoev.ru>
parents:
429
diff
changeset
|
276 |
11362a3e3911
nginx-0.0.11-2004-09-21-09:38:28 import
Igor Sysoev <igor@sysoev.ru>
parents:
429
diff
changeset
|
277 |
1387 | 278 typedef struct ngx_http_server_name_s ngx_http_server_name_t; |
279 | |
280 | |
281 typedef struct { | |
282 ngx_hash_combined_t names; | |
283 | |
284 ngx_uint_t nregex; | |
285 ngx_http_server_name_t *regex; | |
286 } ngx_http_virtual_names_t; | |
593 | 287 |
288 | |
569 | 289 typedef void (*ngx_http_cleanup_pt)(void *data); |
290 | |
291 typedef struct ngx_http_cleanup_s ngx_http_cleanup_t; | |
292 | |
293 struct ngx_http_cleanup_s { | |
593 | 294 ngx_http_cleanup_pt handler; |
295 void *data; | |
296 ngx_http_cleanup_t *next; | |
569 | 297 }; |
298 | |
299 | |
777
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
300 typedef ngx_int_t (*ngx_http_post_subrequest_pt)(ngx_http_request_t *r, |
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
301 void *data, ngx_int_t rc); |
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
302 |
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
303 typedef struct { |
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
304 ngx_http_post_subrequest_pt handler; |
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
305 void *data; |
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
306 } ngx_http_post_subrequest_t; |
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
307 |
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
308 |
509 | 309 typedef struct ngx_http_postponed_request_s ngx_http_postponed_request_t; |
310 | |
311 struct ngx_http_postponed_request_s { | |
535 | 312 ngx_http_request_t *request; |
313 ngx_chain_t *out; | |
314 ngx_http_postponed_request_t *next; | |
509 | 315 }; |
316 | |
317 | |
356
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
318 typedef ngx_int_t (*ngx_http_handler_pt)(ngx_http_request_t *r); |
509 | 319 typedef void (*ngx_http_event_handler_pt)(ngx_http_request_t *r); |
320 | |
143
5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
Igor Sysoev <igor@sysoev.ru>
parents:
141
diff
changeset
|
321 |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
322 struct ngx_http_request_s { |
501 | 323 uint32_t signature; /* "HTTP" */ |
367
ceec87d1c2b3
nginx-0.0.7-2004-06-24-11:53:37 import
Igor Sysoev <igor@sysoev.ru>
parents:
362
diff
changeset
|
324 |
501 | 325 ngx_connection_t *connection; |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
326 |
501 | 327 void **ctx; |
328 void **main_conf; | |
329 void **srv_conf; | |
330 void **loc_conf; | |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
331 |
509 | 332 ngx_http_event_handler_pt read_event_handler; |
333 ngx_http_event_handler_pt write_event_handler; | |
334 | |
501 | 335 ngx_http_cache_t *cache; |
197
0b81c7a0b133
nginx-0.0.1-2003-11-27-10:45:22 import
Igor Sysoev <igor@sysoev.ru>
parents:
190
diff
changeset
|
336 |
501 | 337 ngx_http_upstream_t *upstream; |
1168
4d0d12446c3b
store the upstream states before X-Accel-Redirect to a next upstream
Igor Sysoev <igor@sysoev.ru>
parents:
1151
diff
changeset
|
338 ngx_array_t *upstream_states; |
4d0d12446c3b
store the upstream states before X-Accel-Redirect to a next upstream
Igor Sysoev <igor@sysoev.ru>
parents:
1151
diff
changeset
|
339 /* of ngx_http_upstream_state_t */ |
479 | 340 |
501 | 341 ngx_pool_t *pool; |
342 ngx_buf_t *header_in; | |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
343 |
501 | 344 ngx_http_headers_in_t headers_in; |
345 ngx_http_headers_out_t headers_out; | |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
346 |
501 | 347 ngx_http_request_body_t *request_body; |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
296
diff
changeset
|
348 |
501 | 349 time_t lingering_time; |
1179
6e2216ad2c87
$request_time has millisecond precision
Igor Sysoev <igor@sysoev.ru>
parents:
1172
diff
changeset
|
350 time_t start_sec; |
6e2216ad2c87
$request_time has millisecond precision
Igor Sysoev <igor@sysoev.ru>
parents:
1172
diff
changeset
|
351 ngx_msec_t start_msec; |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
352 |
501 | 353 ngx_uint_t method; |
354 ngx_uint_t http_version; | |
577 | 355 |
501 | 356 ngx_str_t request_line; |
357 ngx_str_t uri; | |
358 ngx_str_t args; | |
359 ngx_str_t exten; | |
360 ngx_str_t unparsed_uri; | |
314
d71c87d11b16
nginx-0.0.3-2004-04-14-09:57:36 import
Igor Sysoev <igor@sysoev.ru>
parents:
313
diff
changeset
|
361 |
501 | 362 ngx_str_t method_name; |
363 ngx_str_t http_protocol; | |
577 | 364 |
509 | 365 ngx_chain_t *out; |
501 | 366 ngx_http_request_t *main; |
509 | 367 ngx_http_request_t *parent; |
368 ngx_http_postponed_request_t *postponed; | |
777
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
369 ngx_http_post_subrequest_t *post_subrequest; |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
370 |
501 | 371 uint32_t in_addr; |
372 ngx_uint_t port; | |
373 ngx_str_t *port_text; /* ":80" */ | |
374 ngx_str_t server_name; | |
593 | 375 ngx_http_virtual_names_t *virtual_names; |
99
a059e1aa65d4
nginx-0.0.1-2003-06-02-19:24:30 import
Igor Sysoev <igor@sysoev.ru>
parents:
96
diff
changeset
|
376 |
501 | 377 ngx_int_t phase_handler; |
378 ngx_http_handler_pt content_handler; | |
543 | 379 ngx_uint_t access_code; |
485 | 380 |
573 | 381 ngx_http_variable_value_t *variables; |
501 | 382 |
527 | 383 size_t limit_rate; |
384 | |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
296
diff
changeset
|
385 /* used to learn the Apache compatible response length without a header */ |
501 | 386 size_t header_size; |
210
00cafae0bdf1
nginx-0.0.1-2003-12-14-23:10:27 import
Igor Sysoev <igor@sysoev.ru>
parents:
201
diff
changeset
|
387 |
663 | 388 off_t request_length; |
475 | 389 |
501 | 390 ngx_uint_t err_status; |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
391 |
501 | 392 ngx_http_connection_t *http_connection; |
432
11362a3e3911
nginx-0.0.11-2004-09-21-09:38:28 import
Igor Sysoev <igor@sysoev.ru>
parents:
429
diff
changeset
|
393 |
509 | 394 ngx_http_log_handler_pt log_handler; |
395 | |
569 | 396 ngx_http_cleanup_t *cleanup; |
397 | |
501 | 398 unsigned http_state:4; |
216
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
399 |
452 | 400 /* URI with "/." and on Win32 with "//" */ |
501 | 401 unsigned complex_uri:1; |
485 | 402 |
452 | 403 /* URI with "%" */ |
501 | 404 unsigned quoted_uri:1; |
485 | 405 |
406 /* URI with "+" */ | |
501 | 407 unsigned plus_in_uri:1; |
485 | 408 |
489 | 409 /* URI with "\0" or "%00" */ |
501 | 410 unsigned zero_in_uri:1; |
489 | 411 |
511 | 412 unsigned invalid_header:1; |
413 | |
509 | 414 unsigned valid_location:1; |
505 | 415 unsigned valid_unparsed_uri:1; |
501 | 416 unsigned uri_changed:1; |
417 unsigned uri_changes:4; | |
485 | 418 |
633 | 419 unsigned request_body_in_single_buf:1; |
420 unsigned request_body_in_file_only:1; | |
421 unsigned request_body_in_persistent_file:1; | |
1075
4d203f76b757
undo "client_body_in_file_only any"
Igor Sysoev <igor@sysoev.ru>
parents:
1059
diff
changeset
|
422 unsigned request_body_in_clean_file:1; |
633 | 423 unsigned request_body_file_group_access:1; |
637 | 424 unsigned request_body_file_log_level:3; |
633 | 425 |
597 | 426 unsigned fast_subrequest:1; |
777
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
427 unsigned subrequest_in_memory:1; |
597 | 428 |
501 | 429 unsigned header_timeout_set:1; |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
430 |
501 | 431 unsigned proxy:1; |
432 unsigned bypass_cache:1; | |
433 unsigned no_cache:1; | |
170
c42be4185301
nginx-0.0.1-2003-11-03-01:56:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
164
diff
changeset
|
434 |
573 | 435 #if (NGX_HTTP_REALIP) |
436 | |
437 /* | |
438 * instead of using the request context data in ngx_http_realip_module | |
439 * we use the single bit in the request structure | |
440 */ | |
441 unsigned realip_set:1; | |
442 | |
443 #endif | |
444 | |
984
dd128232e6ba
count connection once per request
Igor Sysoev <igor@sysoev.ru>
parents:
963
diff
changeset
|
445 /* |
dd128232e6ba
count connection once per request
Igor Sysoev <igor@sysoev.ru>
parents:
963
diff
changeset
|
446 * instead of using the request context data in ngx_http_limit_zone_module |
dd128232e6ba
count connection once per request
Igor Sysoev <igor@sysoev.ru>
parents:
963
diff
changeset
|
447 * we use the single bit in the request structure |
dd128232e6ba
count connection once per request
Igor Sysoev <igor@sysoev.ru>
parents:
963
diff
changeset
|
448 */ |
dd128232e6ba
count connection once per request
Igor Sysoev <igor@sysoev.ru>
parents:
963
diff
changeset
|
449 unsigned limit_zone_set:1; |
dd128232e6ba
count connection once per request
Igor Sysoev <igor@sysoev.ru>
parents:
963
diff
changeset
|
450 |
99
a059e1aa65d4
nginx-0.0.1-2003-06-02-19:24:30 import
Igor Sysoev <igor@sysoev.ru>
parents:
96
diff
changeset
|
451 #if 0 |
501 | 452 unsigned cachable:1; |
99
a059e1aa65d4
nginx-0.0.1-2003-06-02-19:24:30 import
Igor Sysoev <igor@sysoev.ru>
parents:
96
diff
changeset
|
453 #endif |
509 | 454 |
501 | 455 unsigned pipeline:1; |
456 unsigned plain_http:1; | |
457 unsigned chunked:1; | |
458 unsigned header_only:1; | |
730
1be87cdd010f
set "Content-Length: 0" for errors handled by "return 204"
Igor Sysoev <igor@sysoev.ru>
parents:
681
diff
changeset
|
459 unsigned zero_body:1; |
501 | 460 unsigned keepalive:1; |
461 unsigned lingering_close:1; | |
537 | 462 unsigned discard_body:1; |
509 | 463 unsigned internal:1; |
679 | 464 unsigned error_page:1; |
629 | 465 unsigned post_action:1; |
466 unsigned request_complete:1; | |
667 | 467 unsigned request_output:1; |
468 unsigned header_sent:1; | |
509 | 469 unsigned done:1; |
523 | 470 unsigned utf8:1; |
99
a059e1aa65d4
nginx-0.0.1-2003-06-02-19:24:30 import
Igor Sysoev <igor@sysoev.ru>
parents:
96
diff
changeset
|
471 |
829
362d156f0278
high level HTTP buffered flags should be on per-subrequest basis,
Igor Sysoev <igor@sysoev.ru>
parents:
777
diff
changeset
|
472 unsigned buffered:4; |
362d156f0278
high level HTTP buffered flags should be on per-subrequest basis,
Igor Sysoev <igor@sysoev.ru>
parents:
777
diff
changeset
|
473 |
513 | 474 unsigned main_filter_need_in_memory:1; |
501 | 475 unsigned filter_need_in_memory:1; |
476 unsigned filter_need_temporary:1; | |
581 | 477 unsigned allow_ranges:1; |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
478 |
427
0d08eabe5c7b
nginx-0.0.10-2004-09-15-20:00:43 import
Igor Sysoev <igor@sysoev.ru>
parents:
426
diff
changeset
|
479 #if (NGX_STAT_STUB) |
501 | 480 unsigned stat_reading:1; |
481 unsigned stat_writing:1; | |
427
0d08eabe5c7b
nginx-0.0.10-2004-09-15-20:00:43 import
Igor Sysoev <igor@sysoev.ru>
parents:
426
diff
changeset
|
482 #endif |
0d08eabe5c7b
nginx-0.0.10-2004-09-15-20:00:43 import
Igor Sysoev <igor@sysoev.ru>
parents:
426
diff
changeset
|
483 |
657 | 484 unsigned subrequests:8; |
485 | |
99
a059e1aa65d4
nginx-0.0.1-2003-06-02-19:24:30 import
Igor Sysoev <igor@sysoev.ru>
parents:
96
diff
changeset
|
486 /* used to parse HTTP headers */ |
772
843412b22ba2
compact r->http_minor and r->http_major
Igor Sysoev <igor@sysoev.ru>
parents:
730
diff
changeset
|
487 |
501 | 488 ngx_uint_t state; |
489 u_char *uri_start; | |
490 u_char *uri_end; | |
491 u_char *uri_ext; | |
492 u_char *args_start; | |
493 u_char *request_start; | |
494 u_char *request_end; | |
495 u_char *method_end; | |
496 u_char *schema_start; | |
497 u_char *schema_end; | |
498 u_char *host_start; | |
499 u_char *host_end; | |
500 u_char *port_start; | |
501 u_char *port_end; | |
502 u_char *header_name_start; | |
503 u_char *header_name_end; | |
504 u_char *header_start; | |
505 u_char *header_end; | |
649 | 506 |
772
843412b22ba2
compact r->http_minor and r->http_major
Igor Sysoev <igor@sysoev.ru>
parents:
730
diff
changeset
|
507 unsigned http_minor:16; |
843412b22ba2
compact r->http_minor and r->http_major
Igor Sysoev <igor@sysoev.ru>
parents:
730
diff
changeset
|
508 unsigned http_major:16; |
843412b22ba2
compact r->http_minor and r->http_major
Igor Sysoev <igor@sysoev.ru>
parents:
730
diff
changeset
|
509 |
507 | 510 ngx_uint_t header_hash; |
649 | 511 ngx_uint_t lowcase_index; |
512 u_char lowcase_header[NGX_HTTP_LC_HEADER_LEN]; | |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
513 }; |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
514 |
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
515 |
569 | 516 extern ngx_http_header_t ngx_http_headers_in[]; |
517 extern ngx_http_header_out_t ngx_http_headers_out[]; | |
164
84036764e215
nginx-0.0.1-2003-10-29-11:30:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
162
diff
changeset
|
518 |
84036764e215
nginx-0.0.1-2003-10-29-11:30:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
162
diff
changeset
|
519 |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
520 #endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */ |