You are here

public function UriInterface::getAuthority in Lockr 7.3

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:

<pre> [user-info@]host[:port] </pre>

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

Return value

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

See also

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

1 method overrides UriInterface::getAuthority()
Uri::getAuthority in vendor/guzzlehttp/psr7/src/Uri.php
Retrieve the authority component of the URI.

File

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

Class

UriInterface
Value object representing a URI.

Namespace

Psr\Http\Message

Code

public function getAuthority();