ngx_http_limit_req_create_conf 在 src\http\modules\ngx_http_limit_req_module.c
static void *
ngx_http_limit_req_create_conf(ngx_conf_t *cf)
{ngx_http_limit_req_conf_t *conf;conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_limit_req_conf_t));if (conf == NULL) {return NULL;}/** set by ngx_pcalloc():** conf->limits.elts = NULL;*/conf->limit_log_level = NGX_CONF_UNSET_UINT;conf->status_code = NGX_CONF_UNSET_UINT;conf->dry_run = NGX_CONF_UNSET;return conf;
}
从内存池中分配内存作为 ngx_http_limit_req_module 模块的 location 级配置结构体
返回 结构体的地址