| #include <ngx_config_command.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 = { |
| NULL, /* create server config */ |
| ngx_http_core_create_conf, /* create location config */ |
| ngx_http_core_commands, /* module directives */ |
| 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"}, |
| static void *ngx_http_core_create_conf(ngx_pool_t *pool) |
| ngx_http_core_conf_t *conf; |
| ngx_pcalloc(pool, sizeof(ngx_http_core_conf_t)), |
| conf->send_timeout = NGX_CONF_UNSET; |