aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-09-16 15:01:44 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-09-16 15:01:44 +0000
commit682bf8e9c04fbe2fc9548985cdec173b6a9dcb27 (patch)
treeabca656ec5a3ca157b3fb37670285d49dd0800cc /src/http/ngx_http_core.c
parent1af7c82f7cde36d3813ee8f5dd45f8b03f5ad66c (diff)
downloadnginx-682bf8e9c04fbe2fc9548985cdec173b6a9dcb27.tar.gz
nginx-682bf8e9c04fbe2fc9548985cdec173b6a9dcb27.zip
nginx-0.0.1-2002-09-16-19:01:44 import
Diffstat (limited to 'src/http/ngx_http_core.c')
-rw-r--r--src/http/ngx_http_core.c49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/http/ngx_http_core.c b/src/http/ngx_http_core.c
new file mode 100644
index 000000000..a42e7cc27
--- /dev/null
+++ b/src/http/ngx_http_core.c
@@ -0,0 +1,49 @@
+
+#include <ngx_config.h>
+#include <ngx_config_command.h>
+#include <ngx_http.h>
+#include <ngx_http_core.h>
+#include <ngx_http_config.h>
+
+
+static void *ngx_http_core_create_conf(ngx_pool_t *pool);
+
+
+static ngx_command_t ngx_http_core_commands[];
+
+
+ngx_http_module_t ngx_http_core_module = {
+ NGX_HTTP_MODULE,
+ NULL, /* create server config */
+ ngx_http_core_create_conf, /* create location config */
+ ngx_http_core_commands, /* module directives */
+ NULL, /* init module */
+ NULL /* init output body filter */
+};
+
+
+static ngx_command_t ngx_http_core_commands[] = {
+
+ {"send_timeout", ngx_conf_set_time_slot,
+ offsetof(ngx_http_core_conf_t, send_timeout),
+ NGX_HTTP_LOC_CONF, NGX_CONF_TAKE1,
+ "set timeout for sending response"},
+
+ {NULL}
+
+};
+
+
+static void *ngx_http_core_create_conf(ngx_pool_t *pool)
+{
+ ngx_http_core_conf_t *conf;
+
+ ngx_test_null(conf,
+ ngx_pcalloc(pool, sizeof(ngx_http_core_conf_t)),
+ NULL);
+
+ conf->send_timeout = NGX_CONF_UNSET;
+
+ return conf;
+}
+