~ubuntu-branches/ubuntu/karmic/nginx/karmic

« back to all changes in this revision

Viewing changes to src/http/ngx_http_request.h

  • Committer: Bazaar Package Importer
  • Author(s): Fabio Tranchitella
  • Date: 2009-05-31 18:38:56 UTC
  • mfrom: (1.1.11 upstream) (4.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090531183856-lkdgdzr9m731fz92
Tags: 0.7.59-1
* New upstream release, first in Debian for the 0.7 branch. Among other
  issues, it also fixes the problem with wildcard dns names used with SSL.
  (Closes: #515904)
* debian/watch: updated.
* debian/postinst: fixed a bashism. (Closes: #507913)
* debian/conf/nginx.conf: removed default_type. (Closes: #509390)
* debian/control: updated Standards-Version to 3.8.1, no changes needed.
* debian/NEWS.Debian: documented the issues with
  server_names_hash_bucket_size. (Closes: #524785)

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
#define NGX_HTTP_MAX_URI_CHANGES           10
12
12
#define NGX_HTTP_MAX_SUBREQUESTS           50
 
13
#define NGX_HTTP_MAX_CAPTURES              9
13
14
 
14
15
/* must be 2^n */
15
16
#define NGX_HTTP_LC_HEADER_LEN             32
58
59
 
59
60
#define NGX_HTTP_ZERO_IN_URI               1
60
61
#define NGX_HTTP_SUBREQUEST_IN_MEMORY      2
 
62
#define NGX_HTTP_SUBREQUEST_WAITED         4
61
63
 
62
64
 
63
65
#define NGX_HTTP_OK                        200
214
216
    unsigned                          connection_type:2;
215
217
    unsigned                          msie:1;
216
218
    unsigned                          msie4:1;
 
219
    unsigned                          msie6:1;
217
220
    unsigned                          opera:1;
218
221
    unsigned                          gecko:1;
219
222
    unsigned                          konqueror:1;
244
247
    size_t                            content_type_len;
245
248
    ngx_str_t                         content_type;
246
249
    ngx_str_t                         charset;
 
250
    u_char                           *content_type_lowcase;
 
251
    ngx_uint_t                        content_type_hash;
247
252
 
248
253
    ngx_array_t                       cache_control;
249
254
 
318
323
};
319
324
 
320
325
 
 
326
typedef struct ngx_http_posted_request_s  ngx_http_posted_request_t;
 
327
 
 
328
struct ngx_http_posted_request_s {
 
329
    ngx_http_request_t               *request;
 
330
    ngx_http_posted_request_t        *next;
 
331
};
 
332
 
 
333
 
321
334
typedef ngx_int_t (*ngx_http_handler_pt)(ngx_http_request_t *r);
322
335
typedef void (*ngx_http_event_handler_pt)(ngx_http_request_t *r);
323
336
 
335
348
    ngx_http_event_handler_pt         read_event_handler;
336
349
    ngx_http_event_handler_pt         write_event_handler;
337
350
 
 
351
#if (NGX_HTTP_CACHE)
338
352
    ngx_http_cache_t                 *cache;
 
353
#endif
339
354
 
340
355
    ngx_http_upstream_t              *upstream;
341
356
    ngx_array_t                      *upstream_states;
370
385
    ngx_http_request_t               *parent;
371
386
    ngx_http_postponed_request_t     *postponed;
372
387
    ngx_http_post_subrequest_t       *post_subrequest;
 
388
    ngx_http_posted_request_t        *posted_requests;
373
389
 
374
 
    uint32_t                          in_addr;
375
 
    ngx_uint_t                        port;
376
 
    ngx_str_t                        *port_text;    /* ":80" */
377
390
    ngx_http_virtual_names_t         *virtual_names;
378
391
 
379
392
    ngx_int_t                         phase_handler;
382
395
 
383
396
    ngx_http_variable_value_t        *variables;
384
397
 
 
398
#if (NGX_PCRE)
 
399
    ngx_uint_t                        ncaptures;
 
400
    int                              *captures;
 
401
    u_char                           *captures_data;
 
402
#endif
 
403
 
385
404
    size_t                            limit_rate;
386
405
 
387
406
    /* used to learn the Apache compatible response length without a header */
425
444
    unsigned                          request_body_file_group_access:1;
426
445
    unsigned                          request_body_file_log_level:3;
427
446
 
428
 
    unsigned                          fast_subrequest:1;
429
447
    unsigned                          subrequest_in_memory:1;
 
448
    unsigned                          waited:1;
430
449
 
 
450
#if (NGX_HTTP_CACHE)
 
451
    unsigned                          cached:1;
 
452
#endif
431
453
    unsigned                          gzip:2;
432
454
 
433
455
    unsigned                          proxy:1;
434
456
    unsigned                          bypass_cache:1;
435
457
    unsigned                          no_cache:1;
436
458
 
437
 
#if (NGX_HTTP_REALIP)
438
 
 
439
 
    /*
440
 
     * instead of using the request context data in ngx_http_realip_module
441
 
     * we use the single bit in the request structure
442
 
     */
443
 
    unsigned                          realip_set:1;
444
 
 
445
 
#endif
446
 
 
447
 
    /*
448
 
     * instead of using the request context data in ngx_http_limit_zone_module
449
 
     * we use the single bit in the request structure
 
459
    /*
 
460
     * instead of using the request context data in
 
461
     * ngx_http_limit_zone_module and ngx_http_limit_req_module
 
462
     * we use the single bits in the request structure
450
463
     */
451
464
    unsigned                          limit_zone_set:1;
 
465
    unsigned                          limit_req_set:1;
452
466
 
453
467
#if 0
454
468
    unsigned                          cacheable:1;
464
478
    unsigned                          discard_body:1;
465
479
    unsigned                          internal:1;
466
480
    unsigned                          error_page:1;
 
481
    unsigned                          ignore_content_encoding:1;
 
482
    unsigned                          filter_finalize:1;
467
483
    unsigned                          post_action:1;
468
484
    unsigned                          request_complete:1;
469
485
    unsigned                          request_output:1;
470
486
    unsigned                          header_sent:1;
471
487
    unsigned                          expect_tested:1;
 
488
    unsigned                          root_tested:1;
472
489
    unsigned                          done:1;
 
490
    unsigned                          logged:1;
473
491
    unsigned                          utf8:1;
474
492
 
475
493
    unsigned                          buffered:4;