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

Function __hdr_reset

lib_protocol/src/http/http_hdr_req.c:75–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static void __hdr_reset(HTTP_HDR_REQ *hh, int clear_cookies)
76{
77 hh->port = 80;
78 hh->method[0] = 0;
79 hh->host[0] = 0;
80 hh->flag = 0;
81
82 if (hh->url_part) {
83 ACL_VSTRING_RESET(hh->url_part);
84 ACL_VSTRING_TERMINATE(hh->url_part);
85 }
86
87 if (hh->url_path) {
88 ACL_VSTRING_RESET(hh->url_path);
89 ACL_VSTRING_TERMINATE(hh->url_path);
90 }
91
92 if (hh->url_params) {
93 ACL_VSTRING_RESET(hh->url_params);
94 ACL_VSTRING_TERMINATE(hh->url_params);
95 }
96
97 if (hh->file_path) {
98 ACL_VSTRING_RESET(hh->file_path);
99 ACL_VSTRING_TERMINATE(hh->file_path);
100 }
101
102 if (hh->params_table) {
103 acl_htable_reset(hh->params_table, __request_args_free_fn);
104 }
105
106 if (clear_cookies && hh->cookies_table) {
107 acl_htable_reset(hh->cookies_table, __cookies_args_free_fn);
108 }
109}
110
111static void thread_cache_free(ACL_ARRAY *pool)
112{

Callers 2

http_hdr_req_newFunction · 0.85
http_hdr_req_rewrite2Function · 0.85

Calls 1

acl_htable_resetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…