function ProxyManager::getProxyForScheme
Returns a ProxyItem if one is set for the scheme, otherwise null
1 call to ProxyManager::getProxyForScheme()
- ProxyManager::getProxyForRequest in vendor/
composer/ composer/ src/ Composer/ Util/ Http/ ProxyManager.php - Returns a RequestProxy instance for the request url
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ Http/ ProxyManager.php, line 90
Class
- ProxyManager
- @internal @author John Stevenson <john-stevenson@blueyonder.co.uk>
Namespace
Composer\Util\HttpCode
private function getProxyForScheme(string $scheme) : ?ProxyItem {
if ($scheme === 'http') {
return $this->httpProxy;
}
if ($scheme === 'https') {
return $this->httpsProxy;
}
return null;
}