public function Request::getScheme in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::getScheme()
Gets the request's scheme.
Return value
string
3 calls to Request::getScheme()
- Request::getHttpHost in vendor/
symfony/ http-foundation/ Request.php - Returns the HTTP host being requested.
- Request::getPort in vendor/
symfony/ http-foundation/ Request.php - Returns the port on which the request is made.
- Request::getSchemeAndHttpHost in vendor/
symfony/ http-foundation/ Request.php - Gets the scheme and HTTP host.
File
- vendor/
symfony/ http-foundation/ Request.php, line 937
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundationCode
public function getScheme() {
return $this
->isSecure() ? 'https' : 'http';
}