comparison src/http/ngx_http.h @ 580:4d3e880ce86c NGINX_0_8_42

nginx 0.8.42 *) Change: now nginx tests locations given by regular expressions, if request was matched exactly by a location given by a prefix string. The previous behavior has been introduced in 0.7.1. *) Feature: the ngx_http_scgi_module. Thanks to Manlio Perillo. *) Feature: a text answer may be added to a "return" directive.
author Igor Sysoev <http://sysoev.ru>
date Mon, 21 Jun 2010 00:00:00 +0400
parents 2da4537168f8
children c5122335e41d
comparison
equal deleted inserted replaced
579:c570633043e7 580:4d3e880ce86c
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,