WordPress\AiClientDependencies\Psr\Http\Message
UriInterface::withScheme
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.
Method of the class: UriInterface{}
No Hooks.
Returns
static. A new instance with the specified scheme.
Usage
$UriInterface = new UriInterface(); $UriInterface->withScheme( $scheme ): UriInterface;
- $scheme(string) (required)
- The scheme to use with the new instance.
UriInterface::withScheme() UriInterface::withScheme code WP 7.0
public function withScheme(string $scheme): UriInterface;