Mercurial > hg > nginx-quic
comparison src/http/ngx_http.h @ 19:d7908993fdeb
nginx-0.0.1-2002-12-02-19:09:40 import; resume after 2 months stall
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Dec 2002 16:09:40 +0000 |
parents | 72ad26c77d2d |
children | a649c0a0adb3 |
comparison
equal
deleted
inserted
replaced
18:72ad26c77d2d | 19:d7908993fdeb |
---|---|
2 #define _NGX_HTTP_H_INCLUDED_ | 2 #define _NGX_HTTP_H_INCLUDED_ |
3 | 3 |
4 | 4 |
5 #include <ngx_config.h> | 5 #include <ngx_config.h> |
6 #include <ngx_types.h> | 6 #include <ngx_types.h> |
7 #include <ngx_string.h> | |
8 #include <ngx_table.h> | |
7 #include <ngx_hunk.h> | 9 #include <ngx_hunk.h> |
8 #include <ngx_files.h> | 10 #include <ngx_files.h> |
9 #include <ngx_connection.h> | 11 #include <ngx_connection.h> |
10 #include <ngx_config_command.h> | 12 #include <ngx_config_command.h> |
11 | 13 |
52 | 54 |
53 ngx_msec_t header_timeout; | 55 ngx_msec_t header_timeout; |
54 ngx_msec_t lingering_timeout; | 56 ngx_msec_t lingering_timeout; |
55 time_t lingering_time; | 57 time_t lingering_time; |
56 } ngx_http_server_t; | 58 } ngx_http_server_t; |
59 | |
60 typedef struct { | |
61 int len; | |
62 char *data; | |
63 int offset; | |
64 } ngx_http_header_t; | |
65 | |
66 typedef struct { | |
67 ngx_table_elt_t *host; | |
68 ngx_table_elt_t *connection; | |
69 ngx_table_elt_t *user_agent; | |
70 ngx_table_elt_t *accept_encoding; | |
71 | |
72 ngx_table_t *headers; | |
73 } ngx_http_headers_in_t; | |
57 | 74 |
58 typedef struct { | 75 typedef struct { |
59 int status; | 76 int status; |
60 int connection; | 77 int connection; |
61 off_t content_length; | 78 off_t content_length; |
80 void **srv_conf; | 97 void **srv_conf; |
81 | 98 |
82 ngx_pool_t *pool; | 99 ngx_pool_t *pool; |
83 ngx_hunk_t *header_in; | 100 ngx_hunk_t *header_in; |
84 | 101 |
85 /* | 102 ngx_http_headers_in_t headers_in; |
86 ngx_http_headers_in_t *headers_in; | 103 ngx_http_headers_out_t headers_out; |
87 */ | |
88 ngx_http_headers_out_t *headers_out; | |
89 | 104 |
90 int filename_len; | 105 int filename_len; |
91 int (*handler)(ngx_http_request_t *r); | 106 int (*handler)(ngx_http_request_t *r); |
92 | 107 |
93 ngx_file_info_t fileinfo; | 108 ngx_file_info_t fileinfo; |
160 #define NGX_HTTP_MODULE 0 | 175 #define NGX_HTTP_MODULE 0 |
161 | 176 |
162 #define ngx_get_module_loc_conf(r, module) r->loc_conf[module.index] | 177 #define ngx_get_module_loc_conf(r, module) r->loc_conf[module.index] |
163 #define ngx_get_module_ctx(r, module) r->ctx[module.index] | 178 #define ngx_get_module_ctx(r, module) r->ctx[module.index] |
164 | 179 |
165 #define ngx_http_create_ctx(r, ctx, module, size) \ | 180 #define ngx_http_create_ctx(r, cx, module, size) \ |
166 do { \ | 181 do { \ |
167 ngx_test_null(ctx, ngx_pcalloc(r->pool, size), NGX_ERROR); \ | 182 ngx_test_null(cx, ngx_pcalloc(r->pool, size), NGX_ERROR); \ |
168 r->ctx[module.index] = ctx; \ | 183 r->ctx[module.index] = cx; \ |
169 } while (0) | 184 } while (0) |
170 | 185 |
171 | 186 |
172 | 187 |
173 /* STUB */ | 188 /* STUB */ |