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

Method AddAuthBearerHeader

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

Source from the content-addressed store, hash-verified

200}
201
202void CurlHttpRequest::AddAuthBearerHeader(const string& auth_token) {
203 CheckNotSent();
204 if (!auth_token.empty()) {
205 AddHeader("Authorization", strings::StrCat("Bearer ", auth_token));
206 }
207}
208
209void CurlHttpRequest::SetRequestStats(RequestStats* stats) {
210 CheckNotSent();

Callers 4

ReadRowMethod · 0.45
ReadSchemaMethod · 0.45
CreateHttpRequestMethod · 0.45
TESTFunction · 0.45

Calls 2

StrCatFunction · 0.50
emptyMethod · 0.45

Tested by 1

TESTFunction · 0.36