You are here

public function UriInterface::getAuthority in Zircon Profile 8

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

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

2 methods override UriInterface::getAuthority()
Uri::getAuthority in vendor/zendframework/zend-diactoros/src/Uri.php
Retrieve the authority component of the URI.
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();