MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / AddHeader

Method AddHeader

tensorflow/core/platform/cloud/curl_http_request.cc:187–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void CurlHttpRequest::AddHeader(const string& name, const string& value) {
188 CheckNotSent();
189 curl_headers_ = libcurl_->curl_slist_append(
190 curl_headers_, strings::StrCat(name, ": ", value).c_str());
191}
192
193void CurlHttpRequest::AddResolveOverride(const string& hostname, int64 port,
194 const string& ip_addr) {

Callers 6

UploadToSessionMethod · 0.45
CreateHttpRequestMethod · 0.45
GetMetadataMethod · 0.45
TESTFunction · 0.45

Calls 3

c_strMethod · 0.80
StrCatFunction · 0.50
curl_slist_appendMethod · 0.45

Tested by 1

TESTFunction · 0.36