Mercurial > hg > nginx
comparison src/http/ngx_http_parse.c @ 210:00cafae0bdf1
nginx-0.0.1-2003-12-14-23:10:27 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 14 Dec 2003 20:10:27 +0000 |
parents | e0bcfb77d6c7 |
children | f1d0e5f09c1e |
comparison
equal
deleted
inserted
replaced
209:e1c815be05ae | 210:00cafae0bdf1 |
---|---|
1 | 1 |
2 #include <ngx_config.h> | 2 #include <ngx_config.h> |
3 #include <ngx_core.h> | 3 #include <ngx_core.h> |
4 #include <ngx_http.h> | 4 #include <ngx_http.h> |
5 | 5 |
6 int ngx_http_parse_request_line(ngx_http_request_t *r) | 6 ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r) |
7 { | 7 { |
8 char ch, *p; | 8 char ch, *p; |
9 enum { | 9 enum { |
10 sw_start = 0, | 10 sw_start = 0, |
11 sw_G, | 11 sw_G, |
417 return NGX_AGAIN; | 417 return NGX_AGAIN; |
418 } | 418 } |
419 } | 419 } |
420 | 420 |
421 | 421 |
422 int ngx_http_parse_header_line(ngx_http_request_t *r, ngx_hunk_t *h) | 422 ngx_int_t ngx_http_parse_header_line(ngx_http_request_t *r, ngx_hunk_t *h) |
423 { | 423 { |
424 char c, ch, *p; | 424 char c, ch, *p; |
425 enum { | 425 enum { |
426 sw_start = 0, | 426 sw_start = 0, |
427 sw_name, | 427 sw_name, |
619 return NGX_AGAIN; | 619 return NGX_AGAIN; |
620 } | 620 } |
621 } | 621 } |
622 | 622 |
623 | 623 |
624 int ngx_http_parse_complex_uri(ngx_http_request_t *r) | 624 ngx_int_t ngx_http_parse_complex_uri(ngx_http_request_t *r) |
625 { | 625 { |
626 char c, ch, decoded, *p, *u; | 626 char c, ch, decoded, *p, *u; |
627 enum { | 627 enum { |
628 sw_usual = 0, | 628 sw_usual = 0, |
629 sw_slash, | 629 sw_slash, |