WordPress\AiClientDependencies\Psr\Http\Message

UriInterface::getSchemepublicWP 1.0

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.

Method of the class: UriInterface{}

No Hooks.

Returns

String. The URI scheme.

Usage

$UriInterface = new UriInterface();
$UriInterface->getScheme(): string;

Notes

UriInterface::getScheme() code WP 7.0

public function getScheme(): string;