MCPcopy Create free account
hub / github.com/aria2/aria2 / getProxyOptionFor

Function getProxyOptionFor

src/AbstractCommand.cc:648–658  ·  view source on GitHub ↗

Returns proxy option value for the given protocol.

Source from the content-addressed store, hash-verified

646namespace {
647// Returns proxy option value for the given protocol.
648std::string getProxyOptionFor(PrefPtr proxyPref, PrefPtr proxyUser,
649 PrefPtr proxyPasswd, const Option* option)
650{
651 std::string uri = makeProxyUri(proxyPref, proxyUser, proxyPasswd, option);
652 if (uri.empty()) {
653 return makeProxyUri(PREF_ALL_PROXY, PREF_ALL_PROXY_USER,
654 PREF_ALL_PROXY_PASSWD, option);
655 }
656
657 return uri;
658}
659} // namespace
660
661// Returns proxy URI for given protocol. If no proxy URI is defined,

Callers 1

getProxyUriFunction · 0.85

Calls 2

makeProxyUriFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected