MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / authenticate

Method authenticate

base/poco/Net/src/HTTPBasicCredentials.cpp:91–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91void HTTPBasicCredentials::authenticate(HTTPRequest& request) const
92{
93 std::ostringstream ostr;
94 Base64Encoder encoder(ostr);
95 encoder.rdbuf()->setLineLength(0);
96 encoder << _username << ":" << _password;
97 encoder.close();
98 request.setCredentials(SCHEME, ostr.str());
99}
100
101
102void HTTPBasicCredentials::proxyAuthenticate(HTTPRequest& request) const

Callers

nothing calls this directly

Calls 5

setLineLengthMethod · 0.45
rdbufMethod · 0.45
closeMethod · 0.45
setCredentialsMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected