You are here

public function Request::getSchemeAndHttpHost in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\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 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.
Request::prepareRequestUri in vendor/symfony/http-foundation/Request.php

File

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

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

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