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

Method updateProxyAuthInfo

base/poco/Net/src/HTTPCredentials.cpp:128–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128void HTTPCredentials::updateProxyAuthInfo(HTTPRequest& request)
129{
130 if (request.has(HTTPRequest::PROXY_AUTHORIZATION))
131 {
132 const std::string& authorization = request.get(HTTPRequest::PROXY_AUTHORIZATION);
133
134 if (isBasicCredentials(authorization))
135 {
136 HTTPBasicCredentials(_digest.getUsername(), _digest.getPassword()).proxyAuthenticate(request);
137 }
138 else if (isDigestCredentials(authorization))
139 {
140 _digest.updateProxyAuthInfo(request);
141 }
142 }
143}
144
145
146bool HTTPCredentials::isBasicCredentials(const std::string& header)

Callers

nothing calls this directly

Calls 4

hasMethod · 0.45
getMethod · 0.45
proxyAuthenticateMethod · 0.45
getPasswordMethod · 0.45

Tested by

no test coverage detected