MCPcopy Create free account
hub / github.com/apache/mesos / createBasicAuthHeaders

Function createBasicAuthHeaders

src/tests/mesos.hpp:1378–1386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1376
1377template <typename TCredential>
1378inline process::http::Headers createBasicAuthHeaders(
1379 const TCredential& credential)
1380{
1381 return process::http::Headers({{
1382 "Authorization",
1383 "Basic " +
1384 base64::encode(credential.principal() + ":" + credential.secret())
1385 }});
1386}
1387
1388
1389// Create WeightInfos from the specified weights flag.

Callers 15

postMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_PFunction · 0.85
postMethod · 0.85
TEST_PFunction · 0.85
postMethod · 0.85
TEST_FFunction · 0.85
checkWithGetRequestMethod · 0.85

Calls 3

HeadersClass · 0.85
principalMethod · 0.80
encodeFunction · 0.50

Tested by

no test coverage detected