diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2010-06-15 15:13:34 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2010-06-15 15:13:34 +0000 |
| commit | 0aae446c7c15dcec0a5531ccefa02837b980ca81 (patch) | |
| tree | a6f84bfd826a880929afe9209fe19ae3af84ceb1 /src/http/ngx_http.h | |
| parent | bef315509b399a1692099677628c0ca3c6383746 (diff) | |
| download | nginx-0aae446c7c15dcec0a5531ccefa02837b980ca81.tar.gz nginx-0aae446c7c15dcec0a5531ccefa02837b980ca81.tar.bz2 | |
ngx_http_parse_status_line()
Diffstat (limited to 'src/http/ngx_http.h')
| -rw-r--r-- | src/http/ngx_http.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index bb19daf83..9351cb09a 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -51,6 +51,14 @@ struct ngx_http_log_ctx_s { }; +typedef struct { + ngx_uint_t code; + ngx_uint_t count; + u_char *start; + u_char *end; +} ngx_http_status_t; + + #define ngx_http_get_module_ctx(r, module) (r)->ctx[module.ctx_index] #define ngx_http_set_ctx(r, c, module) r->ctx[module.ctx_index] = c; @@ -70,6 +78,8 @@ int ngx_http_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg); ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b); ngx_int_t ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes); +ngx_int_t ngx_http_parse_status_line(ngx_http_request_t *r, ngx_buf_t *b, + ngx_http_status_t *status); ngx_int_t ngx_http_parse_unsafe_uri(ngx_http_request_t *r, ngx_str_t *uri, ngx_str_t *args, ngx_uint_t *flags); ngx_int_t ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b, |
