MCPcopy Create free account
hub / github.com/apache/httpd / core_create_req

Function core_create_req

server/core.c:5215–5241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5213}
5214
5215static int core_create_req(request_rec *r)
5216{
5217 /* Alloc the config struct and the array of request notes in
5218 * a single block for efficiency
5219 */
5220 core_request_config *req_cfg;
5221
5222 req_cfg = apr_pcalloc(r->pool, sizeof(core_request_config) +
5223 sizeof(void *) * num_request_notes);
5224 req_cfg->notes = (void **)((char *)req_cfg + sizeof(core_request_config));
5225
5226 /* ### temporarily enable script delivery as the default */
5227 req_cfg->deliver_script = 1;
5228
5229 if (r->main) {
5230 core_request_config *main_req_cfg = (core_request_config *)
5231 ap_get_core_module_config(r->main->request_config);
5232 req_cfg->bb = main_req_cfg->bb;
5233 }
5234 else {
5235 req_cfg->bb = apr_brigade_create(r->pool, r->connection->bucket_alloc);
5236 }
5237
5238 ap_set_core_module_config(r->request_config, req_cfg);
5239
5240 return OK;
5241}
5242
5243static int core_create_proxy_req(request_rec *r, request_rec *pr)
5244{

Callers 1

core_create_proxy_reqFunction · 0.85

Calls 2

Tested by

no test coverage detected