Made `Client.http` into an interface for mocking