public function Request::getScheme

Same name in this branch

Gets the request's scheme.

@api

Return value

string

2 calls to Request::getScheme()
Request::getHttpHost in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php
Returns the HTTP host being requested.
Request::getSchemeAndHttpHost in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php
Gets the scheme and HTTP host.

File

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

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getScheme() {
  return $this
    ->isSecure() ? 'https' : 'http';
}