Function uri_for
Returns a UriInterface for the given value.
This function accepts a string or UriInterface and returns a UriInterface for the given value. If the value is already a UriInterface, it is returned as-is.
Namespace: GuzzleHttp\Psr7
Deprecated: uri_for will be removed in guzzlehttp/psr7:2.0. Use Utils::uriFor instead.
Located at functions.php
Deprecated: uri_for will be removed in guzzlehttp/psr7:2.0. Use Utils::uriFor instead.
Located at functions.php
Parameters summary
string| |
$uri |
Return value summary
|
UriInterface |
Thrown exceptions summary
InvalidArgumentException
|
\InvalidArgumentException |