src/Auth/BasicAuth.php
public function before_request(&$url, &$headers, &$data, &$type, &$options)
    {
        $headers['Authorization'] = 'Basic '.base64_encode($this->token.':'.$this->key);
    }
public function before_request(&$url, &$headers, &$data, &$type, &$options)
    {
        $headers['Authorization'] = 'Basic '.base64_encode($this->token.':'.$this->key);
    }
public function before_request ( & $ url , & $ headers , & $ data , & $ type , & $ options ) { $ headers [ 'Authorization' ] = 'Basic ' . base64_encode ( $ this -> token . ':' . $ this -> key ) ; }
Sets the authentication header.

@param string       $url
@param array        $headers
@param array|string $data
@param string       $type
@param array        $options
Sets the authentication header .