MCPcopy Create free account
hub / github.com/acl-dev/acl / http_req_new

Function http_req_new

lib_protocol/src/http/http_req.c:8–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "http/lib_http.h"
7
8HTTP_REQ *http_req_new(HTTP_HDR_REQ *hdr_req)
9{
10 char myname[] = "http_req_new";
11 HTTP_REQ *request;
12
13 request = (HTTP_REQ*) acl_mycalloc(1, sizeof(HTTP_REQ));
14 if (request == NULL) {
15 char ebuf[256];
16 acl_msg_fatal("%s, %s(%d): calloc error(%s)",
17 __FILE__, myname, __LINE__, acl_last_strerror(ebuf, sizeof(ebuf)));
18 }
19
20 request->hdr_req = hdr_req;
21 return (request);
22}
23
24void http_req_free(HTTP_REQ *request)
25{

Callers 9

get_body_from_reqFunction · 0.85
get_req_bodyFunction · 0.85
read_request_bodyMethod · 0.85
thread_runFunction · 0.85
http_serviceFunction · 0.85
on_headMethod · 0.85
thread_runFunction · 0.85
run_cgiFunction · 0.85
forward_request_bodyFunction · 0.85

Calls 2

acl_msg_fatalFunction · 0.85
acl_last_strerrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…