0
|
1
|
|
2 /*
|
|
3 * Copyright (C) Igor Sysoev
|
660
|
4 * Copyright (C) Nginx, Inc.
|
0
|
5 */
|
|
6
|
|
7
|
|
8 #ifndef _NGX_HTTP_REQUEST_H_INCLUDED_
|
|
9 #define _NGX_HTTP_REQUEST_H_INCLUDED_
|
|
10
|
|
11
|
200
|
12 #define NGX_HTTP_MAX_URI_CHANGES 10
|
664
|
13 #define NGX_HTTP_MAX_SUBREQUESTS 200
|
58
|
14
|
198
|
15 /* must be 2^n */
|
|
16 #define NGX_HTTP_LC_HEADER_LEN 32
|
|
17
|
58
|
18
|
0
|
19 #define NGX_HTTP_DISCARD_BUFFER_SIZE 4096
|
|
20 #define NGX_HTTP_LINGERING_BUFFER_SIZE 4096
|
|
21
|
|
22
|
|
23 #define NGX_HTTP_VERSION_9 9
|
|
24 #define NGX_HTTP_VERSION_10 1000
|
|
25 #define NGX_HTTP_VERSION_11 1001
|
|
26
|
182
|
27 #define NGX_HTTP_UNKNOWN 0x0001
|
|
28 #define NGX_HTTP_GET 0x0002
|
|
29 #define NGX_HTTP_HEAD 0x0004
|
|
30 #define NGX_HTTP_POST 0x0008
|
|
31 #define NGX_HTTP_PUT 0x0010
|
|
32 #define NGX_HTTP_DELETE 0x0020
|
186
|
33 #define NGX_HTTP_MKCOL 0x0040
|
256
|
34 #define NGX_HTTP_COPY 0x0080
|
|
35 #define NGX_HTTP_MOVE 0x0100
|
|
36 #define NGX_HTTP_OPTIONS 0x0200
|
|
37 #define NGX_HTTP_PROPFIND 0x0400
|
|
38 #define NGX_HTTP_PROPPATCH 0x0800
|
|
39 #define NGX_HTTP_LOCK 0x1000
|
|
40 #define NGX_HTTP_UNLOCK 0x2000
|
578
|
41 #define NGX_HTTP_PATCH 0x4000
|
|
42 #define NGX_HTTP_TRACE 0x8000
|
0
|
43
|
|
44 #define NGX_HTTP_CONNECTION_CLOSE 1
|
|
45 #define NGX_HTTP_CONNECTION_KEEP_ALIVE 2
|
|
46
|
|
47
|
|
48 #define NGX_NONE 1
|
|
49
|
|
50
|
|
51 #define NGX_HTTP_PARSE_HEADER_DONE 1
|
|
52
|
|
53 #define NGX_HTTP_CLIENT_ERROR 10
|
|
54 #define NGX_HTTP_PARSE_INVALID_METHOD 10
|
|
55 #define NGX_HTTP_PARSE_INVALID_REQUEST 11
|
54
|
56 #define NGX_HTTP_PARSE_INVALID_09_METHOD 12
|
0
|
57
|
54
|
58 #define NGX_HTTP_PARSE_INVALID_HEADER 13
|
0
|
59
|
248
|
60
|
572
|
61 /* unused 1 */
|
248
|
62 #define NGX_HTTP_SUBREQUEST_IN_MEMORY 2
|
426
|
63 #define NGX_HTTP_SUBREQUEST_WAITED 4
|
530
|
64 #define NGX_HTTP_LOG_UNSAFE 8
|
122
|
65
|
0
|
66
|
|
67 #define NGX_HTTP_OK 200
|
182
|
68 #define NGX_HTTP_CREATED 201
|
578
|
69 #define NGX_HTTP_ACCEPTED 202
|
60
|
70 #define NGX_HTTP_NO_CONTENT 204
|
0
|
71 #define NGX_HTTP_PARTIAL_CONTENT 206
|
|
72
|
|
73 #define NGX_HTTP_SPECIAL_RESPONSE 300
|
|
74 #define NGX_HTTP_MOVED_PERMANENTLY 301
|
|
75 #define NGX_HTTP_MOVED_TEMPORARILY 302
|
580
|
76 #define NGX_HTTP_SEE_OTHER 303
|
0
|
77 #define NGX_HTTP_NOT_MODIFIED 304
|
664
|
78 #define NGX_HTTP_TEMPORARY_REDIRECT 307
|
0
|
79
|
|
80 #define NGX_HTTP_BAD_REQUEST 400
|
52
|
81 #define NGX_HTTP_UNAUTHORIZED 401
|
0
|
82 #define NGX_HTTP_FORBIDDEN 403
|
|
83 #define NGX_HTTP_NOT_FOUND 404
|
|
84 #define NGX_HTTP_NOT_ALLOWED 405
|
|
85 #define NGX_HTTP_REQUEST_TIME_OUT 408
|
186
|
86 #define NGX_HTTP_CONFLICT 409
|
130
|
87 #define NGX_HTTP_LENGTH_REQUIRED 411
|
276
|
88 #define NGX_HTTP_PRECONDITION_FAILED 412
|
0
|
89 #define NGX_HTTP_REQUEST_ENTITY_TOO_LARGE 413
|
|
90 #define NGX_HTTP_REQUEST_URI_TOO_LARGE 414
|
186
|
91 #define NGX_HTTP_UNSUPPORTED_MEDIA_TYPE 415
|
0
|
92 #define NGX_HTTP_RANGE_NOT_SATISFIABLE 416
|
|
93
|
|
94
|
|
95 /* Our own HTTP codes */
|
|
96
|
136
|
97 /* The special code to close connection without any response */
|
|
98 #define NGX_HTTP_CLOSE 444
|
|
99
|
612
|
100 #define NGX_HTTP_NGINX_CODES 494
|
|
101
|
|
102 #define NGX_HTTP_REQUEST_HEADER_TOO_LARGE 494
|
196
|
103
|
|
104 #define NGX_HTTPS_CERT_ERROR 495
|
|
105 #define NGX_HTTPS_NO_CERT 496
|
0
|
106
|
|
107 /*
|
|
108 * We use the special code for the plain HTTP requests that are sent to
|
126
|
109 * HTTPS port to distinguish it from 4XX in an error page redirection
|
0
|
110 */
|
|
111 #define NGX_HTTP_TO_HTTPS 497
|
|
112
|
162
|
113 /* 498 is the canceled code for the requests with invalid host name */
|
0
|
114
|
|
115 /*
|
|
116 * HTTP does not define the code for the case when a client closed
|
|
117 * the connection while we are processing its request so we introduce
|
|
118 * own code to log such situation when a client has closed the connection
|
|
119 * before we even try to send the HTTP header to it
|
|
120 */
|
|
121 #define NGX_HTTP_CLIENT_CLOSED_REQUEST 499
|
|
122
|
|
123
|
|
124 #define NGX_HTTP_INTERNAL_SERVER_ERROR 500
|
|
125 #define NGX_HTTP_NOT_IMPLEMENTED 501
|
|
126 #define NGX_HTTP_BAD_GATEWAY 502
|
|
127 #define NGX_HTTP_SERVICE_UNAVAILABLE 503
|
|
128 #define NGX_HTTP_GATEWAY_TIME_OUT 504
|
186
|
129 #define NGX_HTTP_INSUFFICIENT_STORAGE 507
|
0
|
130
|
|
131
|
254
|
132 #define NGX_HTTP_LOWLEVEL_BUFFERED 0xf0
|
|
133 #define NGX_HTTP_WRITE_BUFFERED 0x10
|
|
134 #define NGX_HTTP_GZIP_BUFFERED 0x20
|
|
135 #define NGX_HTTP_SSI_BUFFERED 0x01
|
296
|
136 #define NGX_HTTP_SUB_BUFFERED 0x02
|
|
137 #define NGX_HTTP_COPY_BUFFERED 0x04
|
146
|
138
|
|
139
|
0
|
140 typedef enum {
|
|
141 NGX_HTTP_INITING_REQUEST_STATE = 0,
|
|
142 NGX_HTTP_READING_REQUEST_STATE,
|
|
143 NGX_HTTP_PROCESS_REQUEST_STATE,
|
|
144
|
|
145 NGX_HTTP_CONNECT_UPSTREAM_STATE,
|
|
146 NGX_HTTP_WRITING_UPSTREAM_STATE,
|
|
147 NGX_HTTP_READING_UPSTREAM_STATE,
|
|
148
|
|
149 NGX_HTTP_WRITING_REQUEST_STATE,
|
|
150 NGX_HTTP_LINGERING_CLOSE_STATE,
|
|
151 NGX_HTTP_KEEPALIVE_STATE
|
|
152 } ngx_http_state_e;
|
|
153
|
|
154
|
|
155 typedef struct {
|
50
|
156 ngx_str_t name;
|
|
157 ngx_uint_t offset;
|
58
|
158 ngx_http_header_handler_pt handler;
|
0
|
159 } ngx_http_header_t;
|
|
160
|
|
161
|
|
162 typedef struct {
|
58
|
163 ngx_str_t name;
|
|
164 ngx_uint_t offset;
|
118
|
165 } ngx_http_header_out_t;
|
58
|
166
|
|
167
|
|
168 typedef struct {
|
50
|
169 ngx_list_t headers;
|
0
|
170
|
50
|
171 ngx_table_elt_t *host;
|
|
172 ngx_table_elt_t *connection;
|
|
173 ngx_table_elt_t *if_modified_since;
|
608
|
174 ngx_table_elt_t *if_unmodified_since;
|
680
|
175 ngx_table_elt_t *if_match;
|
|
176 ngx_table_elt_t *if_none_match;
|
50
|
177 ngx_table_elt_t *user_agent;
|
|
178 ngx_table_elt_t *referer;
|
|
179 ngx_table_elt_t *content_length;
|
|
180 ngx_table_elt_t *content_type;
|
0
|
181
|
50
|
182 ngx_table_elt_t *range;
|
346
|
183 ngx_table_elt_t *if_range;
|
0
|
184
|
130
|
185 ngx_table_elt_t *transfer_encoding;
|
384
|
186 ngx_table_elt_t *expect;
|
130
|
187
|
0
|
188 #if (NGX_HTTP_GZIP)
|
50
|
189 ngx_table_elt_t *accept_encoding;
|
|
190 ngx_table_elt_t *via;
|
0
|
191 #endif
|
|
192
|
50
|
193 ngx_table_elt_t *authorization;
|
0
|
194
|
50
|
195 ngx_table_elt_t *keep_alive;
|
0
|
196
|
678
|
197 #if (NGX_HTTP_X_FORWARDED_FOR)
|
50
|
198 ngx_table_elt_t *x_forwarded_for;
|
0
|
199 #endif
|
|
200
|
122
|
201 #if (NGX_HTTP_REALIP)
|
|
202 ngx_table_elt_t *x_real_ip;
|
|
203 #endif
|
|
204
|
38
|
205 #if (NGX_HTTP_HEADERS)
|
50
|
206 ngx_table_elt_t *accept;
|
|
207 ngx_table_elt_t *accept_language;
|
38
|
208 #endif
|
|
209
|
186
|
210 #if (NGX_HTTP_DAV)
|
|
211 ngx_table_elt_t *depth;
|
|
212 ngx_table_elt_t *destination;
|
276
|
213 ngx_table_elt_t *overwrite;
|
230
|
214 ngx_table_elt_t *date;
|
186
|
215 #endif
|
|
216
|
52
|
217 ngx_str_t user;
|
|
218 ngx_str_t passwd;
|
|
219
|
50
|
220 ngx_array_t cookies;
|
|
221
|
376
|
222 ngx_str_t server;
|
212
|
223 off_t content_length_n;
|
50
|
224 time_t keep_alive_n;
|
0
|
225
|
50
|
226 unsigned connection_type:2;
|
|
227 unsigned msie:1;
|
400
|
228 unsigned msie6:1;
|
50
|
229 unsigned opera:1;
|
|
230 unsigned gecko:1;
|
546
|
231 unsigned chrome:1;
|
562
|
232 unsigned safari:1;
|
50
|
233 unsigned konqueror:1;
|
0
|
234 } ngx_http_headers_in_t;
|
|
235
|
|
236
|
|
237 typedef struct {
|
50
|
238 ngx_list_t headers;
|
0
|
239
|
50
|
240 ngx_uint_t status;
|
|
241 ngx_str_t status_line;
|
0
|
242
|
50
|
243 ngx_table_elt_t *server;
|
|
244 ngx_table_elt_t *date;
|
|
245 ngx_table_elt_t *content_length;
|
|
246 ngx_table_elt_t *content_encoding;
|
|
247 ngx_table_elt_t *location;
|
348
|
248 ngx_table_elt_t *refresh;
|
50
|
249 ngx_table_elt_t *last_modified;
|
|
250 ngx_table_elt_t *content_range;
|
|
251 ngx_table_elt_t *accept_ranges;
|
52
|
252 ngx_table_elt_t *www_authenticate;
|
50
|
253 ngx_table_elt_t *expires;
|
|
254 ngx_table_elt_t *etag;
|
0
|
255
|
206
|
256 ngx_str_t *override_charset;
|
|
257
|
|
258 size_t content_type_len;
|
58
|
259 ngx_str_t content_type;
|
50
|
260 ngx_str_t charset;
|
392
|
261 u_char *content_type_lowcase;
|
|
262 ngx_uint_t content_type_hash;
|
206
|
263
|
58
|
264 ngx_array_t cache_control;
|
|
265
|
50
|
266 off_t content_length_n;
|
|
267 time_t date_time;
|
|
268 time_t last_modified_time;
|
0
|
269 } ngx_http_headers_out_t;
|
|
270
|
|
271
|
28
|
272 typedef void (*ngx_http_client_body_handler_pt)(ngx_http_request_t *r);
|
|
273
|
0
|
274 typedef struct {
|
28
|
275 ngx_temp_file_t *temp_file;
|
|
276 ngx_chain_t *bufs;
|
|
277 ngx_buf_t *buf;
|
212
|
278 off_t rest;
|
182
|
279 ngx_chain_t *to_write;
|
28
|
280 ngx_http_client_body_handler_pt post_handler;
|
0
|
281 } ngx_http_request_body_t;
|
|
282
|
|
283
|
|
284 typedef struct {
|
50
|
285 ngx_http_request_t *request;
|
0
|
286
|
50
|
287 ngx_buf_t **busy;
|
|
288 ngx_int_t nbusy;
|
0
|
289
|
50
|
290 ngx_buf_t **free;
|
|
291 ngx_int_t nfree;
|
0
|
292
|
50
|
293 ngx_uint_t pipeline; /* unsigned pipeline:1; */
|
0
|
294 } ngx_http_connection_t;
|
|
295
|
|
296
|
326
|
297 typedef struct ngx_http_server_name_s ngx_http_server_name_t;
|
|
298
|
|
299
|
|
300 typedef struct {
|
|
301 ngx_hash_combined_t names;
|
|
302
|
|
303 ngx_uint_t nregex;
|
|
304 ngx_http_server_name_t *regex;
|
|
305 } ngx_http_virtual_names_t;
|
142
|
306
|
|
307
|
118
|
308 typedef void (*ngx_http_cleanup_pt)(void *data);
|
|
309
|
|
310 typedef struct ngx_http_cleanup_s ngx_http_cleanup_t;
|
|
311
|
|
312 struct ngx_http_cleanup_s {
|
142
|
313 ngx_http_cleanup_pt handler;
|
|
314 void *data;
|
|
315 ngx_http_cleanup_t *next;
|
118
|
316 };
|
|
317
|
|
318
|
248
|
319 typedef ngx_int_t (*ngx_http_post_subrequest_pt)(ngx_http_request_t *r,
|
|
320 void *data, ngx_int_t rc);
|
|
321
|
|
322 typedef struct {
|
|
323 ngx_http_post_subrequest_pt handler;
|
|
324 void *data;
|
|
325 } ngx_http_post_subrequest_t;
|
|
326
|
|
327
|
58
|
328 typedef struct ngx_http_postponed_request_s ngx_http_postponed_request_t;
|
|
329
|
|
330 struct ngx_http_postponed_request_s {
|
84
|
331 ngx_http_request_t *request;
|
|
332 ngx_chain_t *out;
|
|
333 ngx_http_postponed_request_t *next;
|
58
|
334 };
|
|
335
|
|
336
|
426
|
337 typedef struct ngx_http_posted_request_s ngx_http_posted_request_t;
|
|
338
|
|
339 struct ngx_http_posted_request_s {
|
|
340 ngx_http_request_t *request;
|
|
341 ngx_http_posted_request_t *next;
|
|
342 };
|
|
343
|
|
344
|
0
|
345 typedef ngx_int_t (*ngx_http_handler_pt)(ngx_http_request_t *r);
|
58
|
346 typedef void (*ngx_http_event_handler_pt)(ngx_http_request_t *r);
|
|
347
|
0
|
348
|
|
349 struct ngx_http_request_s {
|
50
|
350 uint32_t signature; /* "HTTP" */
|
0
|
351
|
50
|
352 ngx_connection_t *connection;
|
0
|
353
|
50
|
354 void **ctx;
|
|
355 void **main_conf;
|
|
356 void **srv_conf;
|
|
357 void **loc_conf;
|
0
|
358
|
58
|
359 ngx_http_event_handler_pt read_event_handler;
|
|
360 ngx_http_event_handler_pt write_event_handler;
|
|
361
|
464
|
362 #if (NGX_HTTP_CACHE)
|
50
|
363 ngx_http_cache_t *cache;
|
464
|
364 #endif
|
0
|
365
|
50
|
366 ngx_http_upstream_t *upstream;
|
296
|
367 ngx_array_t *upstream_states;
|
|
368 /* of ngx_http_upstream_state_t */
|
28
|
369
|
50
|
370 ngx_pool_t *pool;
|
|
371 ngx_buf_t *header_in;
|
0
|
372
|
50
|
373 ngx_http_headers_in_t headers_in;
|
|
374 ngx_http_headers_out_t headers_out;
|
0
|
375
|
50
|
376 ngx_http_request_body_t *request_body;
|
0
|
377
|
50
|
378 time_t lingering_time;
|
298
|
379 time_t start_sec;
|
|
380 ngx_msec_t start_msec;
|
0
|
381
|
50
|
382 ngx_uint_t method;
|
|
383 ngx_uint_t http_version;
|
126
|
384
|
50
|
385 ngx_str_t request_line;
|
|
386 ngx_str_t uri;
|
|
387 ngx_str_t args;
|
|
388 ngx_str_t exten;
|
|
389 ngx_str_t unparsed_uri;
|
0
|
390
|
50
|
391 ngx_str_t method_name;
|
|
392 ngx_str_t http_protocol;
|
126
|
393
|
58
|
394 ngx_chain_t *out;
|
50
|
395 ngx_http_request_t *main;
|
58
|
396 ngx_http_request_t *parent;
|
|
397 ngx_http_postponed_request_t *postponed;
|
248
|
398 ngx_http_post_subrequest_t *post_subrequest;
|
426
|
399 ngx_http_posted_request_t *posted_requests;
|
0
|
400
|
478
|
401 ngx_http_virtual_names_t *virtual_names;
|
|
402
|
50
|
403 ngx_int_t phase_handler;
|
|
404 ngx_http_handler_pt content_handler;
|
92
|
405 ngx_uint_t access_code;
|
34
|
406
|
122
|
407 ngx_http_variable_value_t *variables;
|
50
|
408
|
456
|
409 #if (NGX_PCRE)
|
|
410 ngx_uint_t ncaptures;
|
|
411 int *captures;
|
|
412 u_char *captures_data;
|
|
413 #endif
|
|
414
|
76
|
415 size_t limit_rate;
|
|
416
|
0
|
417 /* used to learn the Apache compatible response length without a header */
|
50
|
418 size_t header_size;
|
0
|
419
|
212
|
420 off_t request_length;
|
24
|
421
|
50
|
422 ngx_uint_t err_status;
|
0
|
423
|
50
|
424 ngx_http_connection_t *http_connection;
|
0
|
425
|
58
|
426 ngx_http_log_handler_pt log_handler;
|
|
427
|
118
|
428 ngx_http_cleanup_t *cleanup;
|
|
429
|
518
|
430 unsigned subrequests:8;
|
|
431 unsigned count:8;
|
|
432 unsigned blocked:8;
|
|
433
|
|
434 unsigned aio:1;
|
|
435
|
50
|
436 unsigned http_state:4;
|
0
|
437
|
2
|
438 /* URI with "/." and on Win32 with "//" */
|
50
|
439 unsigned complex_uri:1;
|
34
|
440
|
2
|
441 /* URI with "%" */
|
50
|
442 unsigned quoted_uri:1;
|
34
|
443
|
|
444 /* URI with "+" */
|
50
|
445 unsigned plus_in_uri:1;
|
34
|
446
|
578
|
447 /* URI with " " */
|
|
448 unsigned space_in_uri:1;
|
|
449
|
60
|
450 unsigned invalid_header:1;
|
|
451
|
574
|
452 unsigned add_uri_to_alias:1;
|
58
|
453 unsigned valid_location:1;
|
54
|
454 unsigned valid_unparsed_uri:1;
|
50
|
455 unsigned uri_changed:1;
|
|
456 unsigned uri_changes:4;
|
34
|
457
|
182
|
458 unsigned request_body_in_single_buf:1;
|
|
459 unsigned request_body_in_file_only:1;
|
|
460 unsigned request_body_in_persistent_file:1;
|
278
|
461 unsigned request_body_in_clean_file:1;
|
182
|
462 unsigned request_body_file_group_access:1;
|
186
|
463 unsigned request_body_file_log_level:3;
|
182
|
464
|
248
|
465 unsigned subrequest_in_memory:1;
|
426
|
466 unsigned waited:1;
|
146
|
467
|
464
|
468 #if (NGX_HTTP_CACHE)
|
|
469 unsigned cached:1;
|
|
470 #endif
|
546
|
471
|
|
472 #if (NGX_HTTP_GZIP)
|
|
473 unsigned gzip_tested:1;
|
|
474 unsigned gzip_ok:1;
|
|
475 unsigned gzip_vary:1;
|
|
476 #endif
|
358
|
477
|
50
|
478 unsigned proxy:1;
|
|
479 unsigned bypass_cache:1;
|
|
480 unsigned no_cache:1;
|
0
|
481
|
272
|
482 /*
|
416
|
483 * instead of using the request context data in
|
662
|
484 * ngx_http_limit_conn_module and ngx_http_limit_req_module
|
416
|
485 * we use the single bits in the request structure
|
272
|
486 */
|
648
|
487 unsigned limit_conn_set:1;
|
416
|
488 unsigned limit_req_set:1;
|
272
|
489
|
0
|
490 #if 0
|
340
|
491 unsigned cacheable:1;
|
0
|
492 #endif
|
58
|
493
|
50
|
494 unsigned pipeline:1;
|
|
495 unsigned plain_http:1;
|
|
496 unsigned chunked:1;
|
|
497 unsigned header_only:1;
|
|
498 unsigned keepalive:1;
|
|
499 unsigned lingering_close:1;
|
86
|
500 unsigned discard_body:1;
|
58
|
501 unsigned internal:1;
|
228
|
502 unsigned error_page:1;
|
494
|
503 unsigned ignore_content_encoding:1;
|
488
|
504 unsigned filter_finalize:1;
|
178
|
505 unsigned post_action:1;
|
|
506 unsigned request_complete:1;
|
216
|
507 unsigned request_output:1;
|
|
508 unsigned header_sent:1;
|
384
|
509 unsigned expect_tested:1;
|
388
|
510 unsigned root_tested:1;
|
58
|
511 unsigned done:1;
|
412
|
512 unsigned logged:1;
|
0
|
513
|
254
|
514 unsigned buffered:4;
|
|
515
|
62
|
516 unsigned main_filter_need_in_memory:1;
|
50
|
517 unsigned filter_need_in_memory:1;
|
|
518 unsigned filter_need_temporary:1;
|
130
|
519 unsigned allow_ranges:1;
|
0
|
520
|
|
521 #if (NGX_STAT_STUB)
|
50
|
522 unsigned stat_reading:1;
|
|
523 unsigned stat_writing:1;
|
0
|
524 #endif
|
|
525
|
|
526 /* used to parse HTTP headers */
|
248
|
527
|
50
|
528 ngx_uint_t state;
|
520
|
529
|
|
530 ngx_uint_t header_hash;
|
|
531 ngx_uint_t lowcase_index;
|
|
532 u_char lowcase_header[NGX_HTTP_LC_HEADER_LEN];
|
|
533
|
|
534 u_char *header_name_start;
|
|
535 u_char *header_name_end;
|
|
536 u_char *header_start;
|
|
537 u_char *header_end;
|
|
538
|
|
539 /*
|
|
540 * a memory that can be reused after parsing a request line
|
|
541 * via ngx_http_ephemeral_t
|
|
542 */
|
|
543
|
50
|
544 u_char *uri_start;
|
|
545 u_char *uri_end;
|
|
546 u_char *uri_ext;
|
|
547 u_char *args_start;
|
|
548 u_char *request_start;
|
|
549 u_char *request_end;
|
|
550 u_char *method_end;
|
|
551 u_char *schema_start;
|
|
552 u_char *schema_end;
|
|
553 u_char *host_start;
|
|
554 u_char *host_end;
|
|
555 u_char *port_start;
|
|
556 u_char *port_end;
|
198
|
557
|
248
|
558 unsigned http_minor:16;
|
|
559 unsigned http_major:16;
|
520
|
560 };
|
248
|
561
|
520
|
562
|
|
563 typedef struct {
|
|
564 ngx_http_posted_request_t terminal_posted_request;
|
|
565 #if (NGX_HAVE_AIO_SENDFILE)
|
524
|
566 u_char aio_preload;
|
520
|
567 #endif
|
|
568 } ngx_http_ephemeral_t;
|
0
|
569
|
|
570
|
118
|
571 extern ngx_http_header_t ngx_http_headers_in[];
|
|
572 extern ngx_http_header_out_t ngx_http_headers_out[];
|
0
|
573
|
|
574
|
|
575 #endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */
|