Mercurial > hg > nginx-quic
comparison src/http/ngx_http.h @ 82:fccdb921e8b8
nginx-0.0.1-2003-04-25-18:43:13 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 25 Apr 2003 14:43:13 +0000 |
parents | 17ab1af8c3dd |
children | a7e45c45a95c |
comparison
equal
deleted
inserted
replaced
81:b2ece31c976a | 82:fccdb921e8b8 |
---|---|
25 | 25 |
26 #define NGX_HTTP_CONN_CLOSE 0 | 26 #define NGX_HTTP_CONN_CLOSE 0 |
27 #define NGX_HTTP_CONN_KEEP_ALIVE 1 | 27 #define NGX_HTTP_CONN_KEEP_ALIVE 1 |
28 | 28 |
29 | 29 |
30 #define NGX_HTTP_PARSE_HEADER_DONE 1 | 30 #define NGX_HTTP_PARSE_HEADER_DONE 1 |
31 #define NGX_HTTP_PARSE_INVALID_METHOD 10 | 31 #define NGX_HTTP_PARSE_INVALID_METHOD 10 |
32 #define NGX_HTTP_PARSE_INVALID_REQUEST 11 | 32 #define NGX_HTTP_PARSE_INVALID_REQUEST 11 |
33 #define NGX_HTTP_PARSE_TOO_LONG_URI 12 | 33 #define NGX_HTTP_PARSE_TOO_LONG_URI 12 |
34 #define NGX_HTTP_PARSE_INVALID_HEAD 13 | 34 #define NGX_HTTP_PARSE_INVALID_HEAD 13 |
35 #define NGX_HTTP_PARSE_INVALID_HEADER 14 | 35 #define NGX_HTTP_PARSE_INVALID_HEADER 14 |
36 #define NGX_HTTP_PARSE_TOO_LONG_HEADER 15 | 36 #define NGX_HTTP_PARSE_TOO_LONG_HEADER 15 |
37 #define NGX_HTTP_PARSE_NO_HOST_HEADER 16 | 37 #define NGX_HTTP_PARSE_NO_HOST_HEADER 16 |
38 #define NGX_HTTP_PARSE_INVALID_CL_HEADER 17 | |
38 | 39 |
39 | 40 |
40 #define NGX_HTTP_OK 200 | 41 #define NGX_HTTP_OK 200 |
41 | 42 |
42 #define NGX_HTTP_SPECIAL_RESPONSE 300 | 43 #define NGX_HTTP_SPECIAL_RESPONSE 300 |
68 } ngx_http_header_t; | 69 } ngx_http_header_t; |
69 | 70 |
70 | 71 |
71 typedef struct { | 72 typedef struct { |
72 size_t host_name_len; | 73 size_t host_name_len; |
74 ssize_t content_length_n; | |
73 | 75 |
74 ngx_table_elt_t *host; | 76 ngx_table_elt_t *host; |
75 ngx_table_elt_t *connection; | 77 ngx_table_elt_t *connection; |
76 ngx_table_elt_t *if_modified_since; | 78 ngx_table_elt_t *if_modified_since; |
79 ngx_table_elt_t *content_length; | |
77 ngx_table_elt_t *accept_encoding; | 80 ngx_table_elt_t *accept_encoding; |
78 | 81 |
79 ngx_table_elt_t *user_agent; | 82 ngx_table_elt_t *user_agent; |
80 | 83 |
81 ngx_table_t *headers; | 84 ngx_table_t *headers; |
139 int port; | 142 int port; |
140 ngx_str_t port_name; | 143 ngx_str_t port_name; |
141 | 144 |
142 int filter; | 145 int filter; |
143 | 146 |
144 ssize_t client_content_length; | |
145 char *discarded_buffer; | 147 char *discarded_buffer; |
146 | 148 |
147 ngx_str_t path; | 149 ngx_str_t path; |
148 int path_err; | 150 int path_err; |
149 | 151 |