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