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

Function http_hdr_req_url

lib_protocol/src/http/http_hdr_req.c:1026–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1024}
1025
1026const char *http_hdr_req_url(const HTTP_HDR_REQ *hh)
1027{
1028 static acl_pthread_key_t key = (acl_pthread_key_t) -1;
1029 ACL_VSTRING *buf;
1030
1031 buf = acl_pthread_tls_get(&key);
1032 if (buf == NULL) {
1033 buf = acl_vstring_alloc(256);
1034 acl_pthread_tls_set(key, buf, (void (*)(void*)) free_vstring);
1035 }
1036
1037 acl_vstring_strcpy(buf, hh->host);
1038 acl_vstring_strcat(buf, acl_vstring_str(hh->url_part));
1039 return acl_vstring_str(buf);
1040}
1041
1042int http_hdr_req_range(const HTTP_HDR_REQ *hdr_req, http_off_t *range_from,
1043 http_off_t *range_to)

Callers 1

http_request_filterFunction · 0.85

Calls 5

acl_pthread_tls_getFunction · 0.85
acl_vstring_allocFunction · 0.85
acl_pthread_tls_setFunction · 0.85
acl_vstring_strcpyFunction · 0.85
acl_vstring_strcatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…