Mercurial > hg > nginx-ranges
comparison src/http/ngx_http.h @ 635:e67b227c8dbb default tip
Merge with current.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 25 Apr 2011 04:07:55 +0400 |
parents | c5122335e41d |
children |
comparison
equal
deleted
inserted
replaced
578:f3a9e57d2e17 | 635:e67b227c8dbb |
---|---|
49 ngx_http_request_t *request; | 49 ngx_http_request_t *request; |
50 ngx_http_request_t *current_request; | 50 ngx_http_request_t *current_request; |
51 }; | 51 }; |
52 | 52 |
53 | 53 |
54 typedef struct { | |
55 ngx_uint_t code; | |
56 ngx_uint_t count; | |
57 u_char *start; | |
58 u_char *end; | |
59 } ngx_http_status_t; | |
60 | |
61 | |
54 #define ngx_http_get_module_ctx(r, module) (r)->ctx[module.ctx_index] | 62 #define ngx_http_get_module_ctx(r, module) (r)->ctx[module.ctx_index] |
55 #define ngx_http_set_ctx(r, c, module) r->ctx[module.ctx_index] = c; | 63 #define ngx_http_set_ctx(r, c, module) r->ctx[module.ctx_index] = c; |
56 | 64 |
57 | 65 |
58 ngx_int_t ngx_http_add_location(ngx_conf_t *cf, ngx_queue_t **locations, | 66 ngx_int_t ngx_http_add_location(ngx_conf_t *cf, ngx_queue_t **locations, |
68 #endif | 76 #endif |
69 | 77 |
70 ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b); | 78 ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b); |
71 ngx_int_t ngx_http_parse_complex_uri(ngx_http_request_t *r, | 79 ngx_int_t ngx_http_parse_complex_uri(ngx_http_request_t *r, |
72 ngx_uint_t merge_slashes); | 80 ngx_uint_t merge_slashes); |
81 ngx_int_t ngx_http_parse_status_line(ngx_http_request_t *r, ngx_buf_t *b, | |
82 ngx_http_status_t *status); | |
73 ngx_int_t ngx_http_parse_unsafe_uri(ngx_http_request_t *r, ngx_str_t *uri, | 83 ngx_int_t ngx_http_parse_unsafe_uri(ngx_http_request_t *r, ngx_str_t *uri, |
74 ngx_str_t *args, ngx_uint_t *flags); | 84 ngx_str_t *args, ngx_uint_t *flags); |
75 ngx_int_t ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b, | 85 ngx_int_t ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b, |
76 ngx_uint_t allow_underscores); | 86 ngx_uint_t allow_underscores); |
77 ngx_int_t ngx_http_parse_multi_header_lines(ngx_array_t *headers, | 87 ngx_int_t ngx_http_parse_multi_header_lines(ngx_array_t *headers, |
130 ngx_hash_t *types_hash, ngx_array_t **prev_keys, | 140 ngx_hash_t *types_hash, ngx_array_t **prev_keys, |
131 ngx_hash_t *prev_types_hash, ngx_str_t *default_types); | 141 ngx_hash_t *prev_types_hash, ngx_str_t *default_types); |
132 ngx_int_t ngx_http_set_default_types(ngx_conf_t *cf, ngx_array_t **types, | 142 ngx_int_t ngx_http_set_default_types(ngx_conf_t *cf, ngx_array_t **types, |
133 ngx_str_t *default_type); | 143 ngx_str_t *default_type); |
134 | 144 |
145 #if (NGX_HTTP_DEGRADATION) | |
146 ngx_uint_t ngx_http_degraded(ngx_http_request_t *); | |
147 #endif | |
148 | |
135 | 149 |
136 extern ngx_module_t ngx_http_module; | 150 extern ngx_module_t ngx_http_module; |
137 | 151 |
138 extern ngx_str_t ngx_http_html_default_types[]; | 152 extern ngx_str_t ngx_http_html_default_types[]; |
139 | 153 |