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

Method header_update

lib_acl_cpp/src/http/http_client.cpp:760–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758}
759
760bool http_client::header_update(const char* name, const char* value,
761 bool force_add /* = true */)
762{
763 HTTP_HDR* hdr = get_http_hdr();
764
765 if (hdr == NULL) {
766 return false;
767 }
768
769 return http_hdr_entry_replace(hdr, name, value, force_add ? 1 : 0)
770 == 0 ? true : false;
771}
772
773int http_client::header_update(const char* name, const char* match,
774 const char* to, bool case_sensitive /* = false */)

Callers 1

transfer_responseMethod · 0.80

Calls 2

http_hdr_entry_replaceFunction · 0.85
http_hdr_entry_replace2Function · 0.85

Tested by

no test coverage detected