| 6 | #include "http/lib_http.h" |
| 7 | |
| 8 | HTTP_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 | |
| 24 | void http_req_free(HTTP_REQ *request) |
| 25 | { |
no test coverage detected
searching dependent graphs…