public function authorizedAs(string $user, string $password): self
    {
        $this->headers->putAuthorization($user, $password);
        return $this;
    }
public function authorizedAs(string $user, string $password): self
    {
        $this->headers->putAuthorization($user, $password);
        return $this;
    }
public function authorizedAs ( string $ user , string $ password ) : self { $ this -> headers -> putAuthorization ( $ user , $ password ) ; return $ this ; }
authorize with given credentials

@api
@param   string  $user
@param   string  $password
@return  \stubbles\peer\http\HttpConnection
authorize with given credentials