Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core.c @ 13:2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 16 Sep 2002 15:01:44 +0000 |
parents | |
children | d7908993fdeb |
comparison
equal
deleted
inserted
replaced
12:055ed05235ae | 13:2aba961a1d34 |
---|---|
1 | |
2 #include <ngx_config.h> | |
3 #include <ngx_config_command.h> | |
4 #include <ngx_http.h> | |
5 #include <ngx_http_core.h> | |
6 #include <ngx_http_config.h> | |
7 | |
8 | |
9 static void *ngx_http_core_create_conf(ngx_pool_t *pool); | |
10 | |
11 | |
12 static ngx_command_t ngx_http_core_commands[]; | |
13 | |
14 | |
15 ngx_http_module_t ngx_http_core_module = { | |
16 NGX_HTTP_MODULE, | |
17 NULL, /* create server config */ | |
18 ngx_http_core_create_conf, /* create location config */ | |
19 ngx_http_core_commands, /* module directives */ | |
20 NULL, /* init module */ | |
21 NULL /* init output body filter */ | |
22 }; | |
23 | |
24 | |
25 static ngx_command_t ngx_http_core_commands[] = { | |
26 | |
27 {"send_timeout", ngx_conf_set_time_slot, | |
28 offsetof(ngx_http_core_conf_t, send_timeout), | |
29 NGX_HTTP_LOC_CONF, NGX_CONF_TAKE1, | |
30 "set timeout for sending response"}, | |
31 | |
32 {NULL} | |
33 | |
34 }; | |
35 | |
36 | |
37 static void *ngx_http_core_create_conf(ngx_pool_t *pool) | |
38 { | |
39 ngx_http_core_conf_t *conf; | |
40 | |
41 ngx_test_null(conf, | |
42 ngx_pcalloc(pool, sizeof(ngx_http_core_conf_t)), | |
43 NULL); | |
44 | |
45 conf->send_timeout = NGX_CONF_UNSET; | |
46 | |
47 return conf; | |
48 } | |
49 |