MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / CreateBasicAuthorizationString

Function CreateBasicAuthorizationString

libi2pd/HTTP.cpp:602–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600 }
601
602 std::string CreateBasicAuthorizationString (const std::string& user, const std::string& pass)
603 {
604 if (user.empty () && pass.empty ()) return "";
605 return "Basic " + i2p::data::ToBase64Standard (user + ":" + pass);
606 }
607
608} // http
609} // i2p

Callers 3

UseProxyMethod · 0.85
HttpsRequestMethod · 0.85

Calls 1

ToBase64StandardFunction · 0.85

Tested by

no test coverage detected