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