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

Method proxyAuthenticate

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

Source from the content-addressed store, hash-verified

100
101
102void HTTPBasicCredentials::proxyAuthenticate(HTTPRequest& request) const
103{
104 std::ostringstream ostr;
105 Base64Encoder encoder(ostr);
106 encoder.rdbuf()->setLineLength(0);
107 encoder << _username << ":" << _password;
108 encoder.close();
109 request.setProxyCredentials(SCHEME, ostr.str());
110}
111
112
113void HTTPBasicCredentials::parseAuthInfo(const std::string& authInfo)

Callers

nothing calls this directly

Calls 5

setLineLengthMethod · 0.45
rdbufMethod · 0.45
closeMethod · 0.45
setProxyCredentialsMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected