Mercurial > hg > nginx
comparison src/http/ngx_http_parse.c @ 86:3973260705cc
nginx-0.0.1-2003-05-12-19:52:24 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 12 May 2003 15:52:24 +0000 |
parents | 66de3f065886 |
children | 29bf798b583f |
comparison
equal
deleted
inserted
replaced
85:3549c2bf9eaf | 86:3973260705cc |
---|---|
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_read_http_request_line(ngx_http_request_t *r) | 6 int ngx_parse_http_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, |
324 r->state = state; | 324 r->state = state; |
325 return NGX_AGAIN; | 325 return NGX_AGAIN; |
326 } | 326 } |
327 } | 327 } |
328 | 328 |
329 int ngx_read_http_header_line(ngx_http_request_t *r, ngx_hunk_t *h) | 329 int ngx_parse_http_header_line(ngx_http_request_t *r, ngx_hunk_t *h) |
330 { | 330 { |
331 char c, ch; | 331 char c, ch; |
332 char *p; | 332 char *p; |
333 enum { | 333 enum { |
334 sw_start = 0, | 334 sw_start = 0, |