You are here

public function UriInterface::withHost in Auth0 Single Sign On 8.2

Return an instance with the specified host.

This method MUST retain the state of the current instance, and return an instance that contains the specified host.

An empty host value is equivalent to removing the host.

Parameters

string $host The hostname to use with the new instance.:

Return value

static A new instance with the specified host.

Throws

\InvalidArgumentException for invalid hostnames.

1 method overrides UriInterface::withHost()
Uri::withHost in vendor/guzzlehttp/psr7/src/Uri.php
Return an instance with the specified host.

File

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

Class

UriInterface
Value object representing a URI.

Namespace

Psr\Http\Message

Code

public function withHost($host);