-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(client): Refactor the Client class
- Refactor the constructor to accept nullable GuzzleClient and HandlerStack parameters - Add a new method `createHttpClient` to create the GuzzleClient instance - Modify the `send` method to use the `createHttpClient` method - Add new methods `setHttpClient`, `setHandlerStack`, and `pushMiddleware` to allow customization of the GuzzleClient - Update the `send` method to use the `handlerStack` property - Update the `createHttpClient` method to check if the `httpClient` property is already set - Update the `createHttpClient` method to push the `ApplyCredentialToRequest` middleware to the `handlerStack` - Update the `createHttpClient` method to set the `handlerStack` property in the GuzzleClient options
- Loading branch information
Showing
1 changed file
with
44 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters