Mercurial > hg > nginx
comparison src/http/ngx_http_parse.c @ 137:2a615b036870
nginx-0.0.1-2003-10-03-19:50:53 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 03 Oct 2003 15:50:53 +0000 |
parents | a059e1aa65d4 |
children | 2357fa41738a |
comparison
equal
deleted
inserted
replaced
136:da00cde00e8a | 137:2a615b036870 |
---|---|
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_parse_http_request_line(ngx_http_request_t *r) | 6 int ngx_http_parse_request_line(ngx_http_request_t *r) |
7 { | 7 { |
8 char ch; | 8 char ch; |
9 char *p; | 9 char *p; |
10 enum { | 10 enum { |
11 sw_start = 0, | 11 sw_start = 0, |
415 r->state = state; | 415 r->state = state; |
416 return NGX_AGAIN; | 416 return NGX_AGAIN; |
417 } | 417 } |
418 } | 418 } |
419 | 419 |
420 int ngx_parse_http_header_line(ngx_http_request_t *r, ngx_hunk_t *h) | 420 int ngx_http_parse_header_line(ngx_http_request_t *r, ngx_hunk_t *h) |
421 { | 421 { |
422 char c, ch; | 422 char c, ch; |
423 char *p; | 423 char *p; |
424 enum { | 424 enum { |
425 sw_start = 0, | 425 sw_start = 0, |