public function handle(RequestInterface $request): RequestInterface
    {
        return
            $request->withHeader(
                'Authorization',
                sprintf('Basic %s', base64_encode(sprintf('%s:%s', $this->user, $this->password)))
            );
    }
public function handle(RequestInterface $request): RequestInterface
    {
        return
            $request->withHeader(
                'Authorization',
                sprintf('Basic %s', base64_encode(sprintf('%s:%s', $this->user, $this->password)))
            );
    }
public function handle ( RequestInterface $ request ) : RequestInterface { return $ request -> withHeader ( 'Authorization' , sprintf ( 'Basic %s' , base64_encode ( sprintf ( '%s:%s' , $ this -> user , $ this -> password ) ) ) ) ; }
Get the http headers associated with the authorization.

@param RequestInterface $request
@return RequestInterface
Get the http headers associated with the authorization .