WordPress\AiClientDependencies\Psr\Http\Message

UriInterface::getAuthoritypublicWP 1.0

Retrieve the authority component of the URI.

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

The authority syntax of the URI is:

[user-info@]host[:port]

If the port component is not set or is the standard port for the current scheme, it SHOULD NOT be included.

Method of the class: UriInterface{}

No Hooks.

Returns

String. The URI authority, in "[user-info@]host[:port]" format.

Usage

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

Notes

UriInterface::getAuthority() code WP 7.0

public function getAuthority(): string;