comparison src/http/ngx_http.h @ 59:e8cdc2989cee

nginx-0.0.1-2003-02-06-20:21:13 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 06 Feb 2003 17:21:13 +0000
parents 6b13b1cadabe
children 50186b49f2ad
comparison
equal deleted inserted replaced
58:6b13b1cadabe 59:e8cdc2989cee
65 time_t lingering_time; 65 time_t lingering_time;
66 } ngx_http_server_t; 66 } ngx_http_server_t;
67 67
68 68
69 typedef struct { 69 typedef struct {
70 int len; 70 size_t len;
71 char *data; 71 char *data;
72 int offset; 72 int offset;
73 } ngx_http_header_t; 73 } ngx_http_header_t;
74 74
75 75
76 typedef struct { 76 typedef struct {
77 int host_name_len; 77 size_t host_name_len;
78 78
79 ngx_table_elt_t *host; 79 ngx_table_elt_t *host;
80 ngx_table_elt_t *connection; 80 ngx_table_elt_t *connection;
81 ngx_table_elt_t *if_modified_since; 81 ngx_table_elt_t *if_modified_since;
82 ngx_table_elt_t *user_agent; 82 ngx_table_elt_t *user_agent;
238 /* STUB */ 238 /* STUB */
239 int ngx_http_init(ngx_pool_t *pool, ngx_log_t *log); 239 int ngx_http_init(ngx_pool_t *pool, ngx_log_t *log);
240 /**/ 240 /**/
241 241
242 int ngx_http_init_connection(ngx_connection_t *c); 242 int ngx_http_init_connection(ngx_connection_t *c);
243 int ngx_read_http_request_line(ngx_http_request_t *r);
244 int ngx_read_http_header_line(ngx_http_request_t *r, ngx_hunk_t *h);
245 int ngx_http_handler(ngx_http_request_t *r);
246
247
248 int ngx_http_send_header(ngx_http_request_t *r);
249 int ngx_http_special_response(ngx_http_request_t *r, int error);
250
251
252 time_t ngx_http_parse_time(char *value, size_t len);
253 size_t ngx_http_get_time(char *buf, time_t t);
243 254
244 255
245 int ngx_http_discard_body(ngx_http_request_t *r); 256 int ngx_http_discard_body(ngx_http_request_t *r);
246 257
247 258
248 int ngx_http_special_response(ngx_http_request_t *r, int error);
249 259
250 260
251 extern int ngx_max_module; 261 extern int ngx_max_module;
252 extern ngx_array_t ngx_http_servers; 262 extern ngx_array_t ngx_http_servers;
253 263
267 277
268 278
269 extern ngx_http_module_t *ngx_http_modules[]; 279 extern ngx_http_module_t *ngx_http_modules[];
270 280
271 281
282 /* STUB */
283 int ngx_http_log_handler(ngx_http_request_t *r);
284 /**/
285
272 286
273 #endif /* _NGX_HTTP_H_INCLUDED_ */ 287 #endif /* _NGX_HTTP_H_INCLUDED_ */