Метод |
Описание |
|
__construct ( string $uri = '' ) |
|
|
__toString ( ) |
|
|
composeComponents ( string $scheme, string $authority, string $path, string $query, string $fragment ) : string |
Composes a URI reference string from its various components. |
|
fromParts ( array $parts ) : Psr\Http\Message\UriInterface |
Creates a URI from a hash of parse_url components. |
|
getAuthority ( ) |
|
|
getFragment ( ) |
|
|
getHost ( ) |
|
|
getPath ( ) |
|
|
getPort ( ) |
|
|
getQuery ( ) |
|
|
getScheme ( ) |
|
|
getUserInfo ( ) |
|
|
isAbsolute ( Psr\Http\Message\UriInterface $uri ) : boolean |
Whether the URI is absolute, i.e. it has a scheme. |
|
isAbsolutePathReference ( Psr\Http\Message\UriInterface $uri ) : boolean |
Whether the URI is a absolute-path reference. |
|
isDefaultPort ( Psr\Http\Message\UriInterface $uri ) : boolean |
Whether the URI has the default port of the current scheme. |
|
isNetworkPathReference ( Psr\Http\Message\UriInterface $uri ) : boolean |
Whether the URI is a network-path reference. |
|
isRelativePathReference ( Psr\Http\Message\UriInterface $uri ) : boolean |
Whether the URI is a relative-path reference. |
|
isSameDocumentReference ( Psr\Http\Message\UriInterface $uri, Psr\Http\Message\UriInterface $base = null ) : boolean |
Whether the URI is a same-document reference. |
|
removeDotSegments ( string $path ) : string |
Removes dot segments from a path and returns the new path. |
|
resolve ( Psr\Http\Message\UriInterface $base, string | Psr\Http\Message\UriInterface $rel ) : Psr\Http\Message\UriInterface |
Converts the relative URI into a new URI that is resolved against the base URI. |
|
withFragment ( $fragment ) |
|
|
withHost ( $host ) |
|
|
withPath ( $path ) |
|
|
withPort ( $port ) |
|
|
withQuery ( $query ) |
|
|
withQueryValue ( Psr\Http\Message\UriInterface $uri, string $key, string | null $value ) : Psr\Http\Message\UriInterface |
Creates a new URI with a specific query string value. |
|
withScheme ( $scheme ) |
|
|
withUserInfo ( $user, $password = null ) |
|
|
withoutQueryValue ( Psr\Http\Message\UriInterface $uri, string $key ) : Psr\Http\Message\UriInterface |
Creates a new URI with a specific query string value removed. |
|