You are here

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

Return an instance with the specified scheme.

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

Implementations MUST support the schemes "http" and "https" case insensitively, and MAY accommodate other schemes if required.

An empty scheme is equivalent to removing the scheme.

Parameters

string $scheme The scheme to use with the new instance.:

Return value

static A new instance with the specified scheme.

Throws

\InvalidArgumentException for invalid or unsupported schemes.

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

File

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

Class

UriInterface
Value object representing a URI.

Namespace

Psr\Http\Message

Code

public function withScheme($scheme);