You are here

public function UriInterface::getScheme in Lockr 7.3

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

1 method overrides UriInterface::getScheme()
Uri::getScheme in vendor/guzzlehttp/psr7/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();