Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ProxyManager.php

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\Http

Code

private function getProxyForScheme(string $scheme) : ?ProxyItem {
    if ($scheme === 'http') {
        return $this->httpProxy;
    }
    if ($scheme === 'https') {
        return $this->httpsProxy;
    }
    return null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal