You are here

public function UriInterface::getScheme in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/psr/http-message/src/UriInterface.php \Psr\Http\Message\UriInterface::getScheme()

Retrieve the scheme component of the URI.

If no scheme is present, this method MUST return an empty string.

The value returned MUST be normalized to lowercase, per RFC 3986 Section 3.1.

The trailing ":" character is not part of the scheme and MUST NOT be added.

Return value

string The URI scheme.

See also

https://tools.ietf.org/html/rfc3986#section-3.1

2 methods override UriInterface::getScheme()
Uri::getScheme in vendor/guzzlehttp/psr7/src/Uri.php
Retrieve the scheme component of the URI.
Uri::getScheme in vendor/zendframework/zend-diactoros/src/Uri.php
Retrieve the scheme component of the URI.

File

vendor/psr/http-message/src/UriInterface.php, line 40

Class

UriInterface
Value object representing a URI.

Namespace

Psr\Http\Message

Code

public function getScheme();