public 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.

Return value

string The scheme and HTTP host

3 calls to Request::getSchemeAndHttpHost()
Request::getUri in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php
Generates a normalized URI for the Request.
Request::getUriForPath in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php
Generates a normalized URI for the given path.
Request::prepareRequestUri in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 953

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

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