WordPress\AiClientDependencies\Psr\Http\Message

UriInterface::withUserInfopublicWP 1.0

Return an instance with the specified user information.

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

Password is optional, but the user information MUST include the user; an empty string for the user is equivalent to removing user information.

Method of the class: UriInterface{}

No Hooks.

Returns

static. A new instance with the specified user information.

Usage

$UriInterface = new UriInterface();
$UriInterface->withUserInfo( $user, ?string $password ): UriInterface;
$user(string) (required)
The user name to use for authority.
?string $password
.
Default: null

UriInterface::withUserInfo() code WP 7.0

public function withUserInfo(string $user, ?string $password = null): UriInterface;