comparison src/http/ngx_http_core_module.h @ 635:e67b227c8dbb default tip

Merge with current.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 25 Apr 2011 04:07:55 +0400
parents 428c6e58046a
children
comparison
equal deleted inserted replaced
578:f3a9e57d2e17 635:e67b227c8dbb
36 #define NGX_HTTP_IMS_OFF 0 36 #define NGX_HTTP_IMS_OFF 0
37 #define NGX_HTTP_IMS_EXACT 1 37 #define NGX_HTTP_IMS_EXACT 1
38 #define NGX_HTTP_IMS_BEFORE 2 38 #define NGX_HTTP_IMS_BEFORE 2
39 39
40 40
41 #define NGX_HTTP_KEEPALIVE_DISABLE_NONE 0x0002
42 #define NGX_HTTP_KEEPALIVE_DISABLE_MSIE6 0x0004
43 #define NGX_HTTP_KEEPALIVE_DISABLE_SAFARI 0x0008
44
45
41 typedef struct ngx_http_location_tree_node_s ngx_http_location_tree_node_t; 46 typedef struct ngx_http_location_tree_node_s ngx_http_location_tree_node_t;
42 typedef struct ngx_http_core_loc_conf_s ngx_http_core_loc_conf_t; 47 typedef struct ngx_http_core_loc_conf_s ngx_http_core_loc_conf_t;
43 48
44 49
45 typedef struct { 50 typedef struct {
69 #endif 74 #endif
70 75
71 int backlog; 76 int backlog;
72 int rcvbuf; 77 int rcvbuf;
73 int sndbuf; 78 int sndbuf;
79 #if (NGX_HAVE_SETFIB)
80 int setfib;
81 #endif
74 82
75 #if (NGX_HAVE_DEFERRED_ACCEPT && defined SO_ACCEPTFILTER) 83 #if (NGX_HAVE_DEFERRED_ACCEPT && defined SO_ACCEPTFILTER)
76 char *accept_filter; 84 char *accept_filter;
77 #endif 85 #endif
78 #if (NGX_HAVE_DEFERRED_ACCEPT && defined TCP_DEFER_ACCEPT) 86 #if (NGX_HAVE_DEFERRED_ACCEPT && defined TCP_DEFER_ACCEPT)
281 #if (NGX_PCRE) 289 #if (NGX_PCRE)
282 ngx_http_regex_t *regex; 290 ngx_http_regex_t *regex;
283 #endif 291 #endif
284 292
285 unsigned noname:1; /* "if () {}" block or limit_except */ 293 unsigned noname:1; /* "if () {}" block or limit_except */
294 unsigned lmt_excpt:1;
286 unsigned named:1; 295 unsigned named:1;
287 296
288 unsigned exact_match:1; 297 unsigned exact_match:1;
289 unsigned noregex:1; 298 unsigned noregex:1;
290 299
291 unsigned auto_redirect:1; 300 unsigned auto_redirect:1;
292 unsigned alias:1;
293 #if (NGX_HTTP_GZIP) 301 #if (NGX_HTTP_GZIP)
294 unsigned gzip_disable_msie6:2; 302 unsigned gzip_disable_msie6:2;
303 #if (NGX_HTTP_DEGRADATION)
304 unsigned gzip_disable_degradation:2;
305 #endif
295 #endif 306 #endif
296 307
297 ngx_http_location_tree_node_t *static_locations; 308 ngx_http_location_tree_node_t *static_locations;
298 #if (NGX_PCRE) 309 #if (NGX_PCRE)
299 ngx_http_core_loc_conf_t **regex_locations; 310 ngx_http_core_loc_conf_t **regex_locations;
305 uint32_t limit_except; 316 uint32_t limit_except;
306 void **limit_except_loc_conf; 317 void **limit_except_loc_conf;
307 318
308 ngx_http_handler_pt handler; 319 ngx_http_handler_pt handler;
309 320
321 /* location name length for inclusive location with inherited alias */
322 size_t alias;
310 ngx_str_t root; /* root, alias */ 323 ngx_str_t root; /* root, alias */
311 ngx_str_t post_action; 324 ngx_str_t post_action;
312 325
313 ngx_array_t *root_lengths; 326 ngx_array_t *root_lengths;
314 ngx_array_t *root_values; 327 ngx_array_t *root_values;
339 ngx_resolver_t *resolver; /* resolver */ 352 ngx_resolver_t *resolver; /* resolver */
340 353
341 time_t keepalive_header; /* keepalive_timeout */ 354 time_t keepalive_header; /* keepalive_timeout */
342 355
343 ngx_uint_t keepalive_requests; /* keepalive_requests */ 356 ngx_uint_t keepalive_requests; /* keepalive_requests */
357 ngx_uint_t keepalive_disable; /* keepalive_disable */
344 ngx_uint_t satisfy; /* satisfy */ 358 ngx_uint_t satisfy; /* satisfy */
345 ngx_uint_t if_modified_since; /* if_modified_since */ 359 ngx_uint_t if_modified_since; /* if_modified_since */
346 ngx_uint_t client_body_in_file_only; /* client_body_in_file_only */ 360 ngx_uint_t client_body_in_file_only; /* client_body_in_file_only */
347 361
348 ngx_flag_t client_body_in_single_buffer; 362 ngx_flag_t client_body_in_single_buffer;
361 ngx_flag_t msie_refresh; /* msie_refresh */ 375 ngx_flag_t msie_refresh; /* msie_refresh */
362 ngx_flag_t log_not_found; /* log_not_found */ 376 ngx_flag_t log_not_found; /* log_not_found */
363 ngx_flag_t log_subrequest; /* log_subrequest */ 377 ngx_flag_t log_subrequest; /* log_subrequest */
364 ngx_flag_t recursive_error_pages; /* recursive_error_pages */ 378 ngx_flag_t recursive_error_pages; /* recursive_error_pages */
365 ngx_flag_t server_tokens; /* server_tokens */ 379 ngx_flag_t server_tokens; /* server_tokens */
380 ngx_flag_t chunked_transfer_encoding; /* chunked_transfer_encoding */
366 381
367 #if (NGX_HTTP_GZIP) 382 #if (NGX_HTTP_GZIP)
368 ngx_flag_t gzip_vary; /* gzip_vary */ 383 ngx_flag_t gzip_vary; /* gzip_vary */
369 384
370 ngx_uint_t gzip_http_version; /* gzip_http_version */ 385 ngx_uint_t gzip_http_version; /* gzip_http_version */
425 440
426 441
427 void ngx_http_core_run_phases(ngx_http_request_t *r); 442 void ngx_http_core_run_phases(ngx_http_request_t *r);
428 ngx_int_t ngx_http_core_generic_phase(ngx_http_request_t *r, 443 ngx_int_t ngx_http_core_generic_phase(ngx_http_request_t *r,
429 ngx_http_phase_handler_t *ph); 444 ngx_http_phase_handler_t *ph);
445 ngx_int_t ngx_http_core_rewrite_phase(ngx_http_request_t *r,
446 ngx_http_phase_handler_t *ph);
430 ngx_int_t ngx_http_core_find_config_phase(ngx_http_request_t *r, 447 ngx_int_t ngx_http_core_find_config_phase(ngx_http_request_t *r,
431 ngx_http_phase_handler_t *ph); 448 ngx_http_phase_handler_t *ph);
432 ngx_int_t ngx_http_core_post_rewrite_phase(ngx_http_request_t *r, 449 ngx_int_t ngx_http_core_post_rewrite_phase(ngx_http_request_t *r,
433 ngx_http_phase_handler_t *ph); 450 ngx_http_phase_handler_t *ph);
434 ngx_int_t ngx_http_core_access_phase(ngx_http_request_t *r, 451 ngx_int_t ngx_http_core_access_phase(ngx_http_request_t *r,
442 459
443 460
444 void *ngx_http_test_content_type(ngx_http_request_t *r, ngx_hash_t *types_hash); 461 void *ngx_http_test_content_type(ngx_http_request_t *r, ngx_hash_t *types_hash);
445 ngx_int_t ngx_http_set_content_type(ngx_http_request_t *r); 462 ngx_int_t ngx_http_set_content_type(ngx_http_request_t *r);
446 void ngx_http_set_exten(ngx_http_request_t *r); 463 void ngx_http_set_exten(ngx_http_request_t *r);
464 ngx_int_t ngx_http_send_response(ngx_http_request_t *r, ngx_uint_t status,
465 ngx_str_t *ct, ngx_http_complex_value_t *cv);
447 u_char *ngx_http_map_uri_to_path(ngx_http_request_t *r, ngx_str_t *name, 466 u_char *ngx_http_map_uri_to_path(ngx_http_request_t *r, ngx_str_t *name,
448 size_t *root_length, size_t reserved); 467 size_t *root_length, size_t reserved);
449 ngx_int_t ngx_http_auth_basic_user(ngx_http_request_t *r); 468 ngx_int_t ngx_http_auth_basic_user(ngx_http_request_t *r);
450 #if (NGX_HTTP_GZIP) 469 #if (NGX_HTTP_GZIP)
451 ngx_int_t ngx_http_gzip_ok(ngx_http_request_t *r); 470 ngx_int_t ngx_http_gzip_ok(ngx_http_request_t *r);