comparison src/http/ngx_http.c @ 311:11ff50a35d6d

nginx-0.0.3-2004-04-12-20:38:09 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 12 Apr 2004 16:38:09 +0000
parents 117ccc7c4055
children 2e3cbc1bbe3c
comparison
equal deleted inserted replaced
310:a9a9af2c7370 311:11ff50a35d6d
14 uint64_t ngx_http_total_sent; 14 uint64_t ngx_http_total_sent;
15 15
16 16
17 int (*ngx_http_top_header_filter) (ngx_http_request_t *r); 17 int (*ngx_http_top_header_filter) (ngx_http_request_t *r);
18 int (*ngx_http_top_body_filter) (ngx_http_request_t *r, ngx_chain_t *ch); 18 int (*ngx_http_top_body_filter) (ngx_http_request_t *r, ngx_chain_t *ch);
19
20
21 static ngx_str_t http_name = ngx_string("http");
22 19
23 20
24 static ngx_command_t ngx_http_commands[] = { 21 static ngx_command_t ngx_http_commands[] = {
25 22
26 {ngx_string("http"), 23 {ngx_string("http"),
31 NULL}, 28 NULL},
32 29
33 ngx_null_command 30 ngx_null_command
34 }; 31 };
35 32
33
34 static ngx_core_module_t ngx_http_module_ctx = {
35 ngx_string("http"),
36 NULL,
37 NULL
38 };
39
36 40
37 ngx_module_t ngx_http_module = { 41 ngx_module_t ngx_http_module = {
38 NGX_MODULE, 42 NGX_MODULE,
39 &http_name, /* module context */ 43 &ngx_http_module_ctx, /* module context */
40 ngx_http_commands, /* module directives */ 44 ngx_http_commands, /* module directives */
41 NGX_CORE_MODULE, /* module type */ 45 NGX_CORE_MODULE, /* module type */
42 NULL, /* init module */ 46 NULL, /* init module */
43 NULL /* init child */ 47 NULL /* init child */
44 }; 48 };