public function RequestContext::setScheme

Sets the HTTP scheme.

@api

Parameters

string $scheme The HTTP scheme:

1 call to RequestContext::setScheme()
RequestContext::fromRequest in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RequestContext.php

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RequestContext.php, line 182

Class

RequestContext
Holds information about the current request.

Namespace

Symfony\Component\Routing

Code

public function setScheme($scheme) {
  $this->scheme = strtolower($scheme);
}