Zend\Http\Client::setAuth
Create a HTTP authentication "Authorization:" header according to the specified user, password and authentication method.
Signature
public function setAuth(string
$user,
[string
$password = self::AUTH_BASIC,
[string
$type = self::AUTH_BASIC]] )
Parameters
$user
— string$password
— string$type
— string
Returns
- Client