Mercurial > hg > nginx
comparison src/http/ngx_http.h @ 3626:e4cabc48b862
ngx_http_parse_status_line()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 15 Jun 2010 15:13:34 +0000 |
parents | d2a4c6aa9b9a |
children | c1e3cb4c669c |
comparison
equal
deleted
inserted
replaced
3625:8a6b36db2398 | 3626:e4cabc48b862 |
---|---|
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, |