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

Breadcrumb

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

function UriComparator::computePort

1 call to UriComparator::computePort()
UriComparator::isCrossOrigin in vendor/guzzlehttp/psr7/src/UriComparator.php
Determines if a modified URL should be considered cross-origin with respect to an original URL.

File

vendor/guzzlehttp/psr7/src/UriComparator.php, line 37

Class

UriComparator
Provides methods to determine if a modified URL should be considered cross-origin.

Namespace

GuzzleHttp\Psr7

Code

private static function computePort(UriInterface $uri) : int {
    $port = $uri->getPort();
    if (null !== $port) {
        return $port;
    }
    return 'https' === $uri->getScheme() ? 443 : 80;
}

API Navigation

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