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

Breadcrumb

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

function Request::getSchemeAndHttpHost

Gets the scheme and HTTP host.

If the URL was called with basic authentication, the user and the password are not added to the generated string.

2 calls to Request::getSchemeAndHttpHost()
Request::getUri in vendor/symfony/http-foundation/Request.php
Generates a normalized URI (URL) for the Request.
Request::getUriForPath in vendor/symfony/http-foundation/Request.php
Generates a normalized URI for the given path.

File

vendor/symfony/http-foundation/Request.php, line 958

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getSchemeAndHttpHost() : string {
    return $this->getScheme() . '://' . $this->getHttpHost();
}

API Navigation

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