Added $request to httpClient

In original code after refactoring it sent an empty request through httpClient it led to infinite error for all API calls.
The issue there is lost $request object as parement in ->send() method