-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Milestone
Description
Plan:
- add
array $extra_options = array()to theCurlClient:__constructmethod - in the
CurlClient:__constructmethod store given$extra_optionsarray into a new protected$extraOptionsclass property - in the
CurlClient::sendRequestmethod usecurl_setoptfunction to set$this->extraOptionsto the current cURL connection
Motivation
This should cover the following use cases (maybe some future cases also):
- an ability to specify a proxy a proxy server (issue: Allow set proxy to use #194, pr: feat: set a proxy to use for the request #195) // cc: @aalcaidep
- an ability to specify connection timeout (issue: There should be an option to configure timeout with API #159, pr: Set timeout for fail gracefully #160) // cc: @ish1301
Metadata
Metadata
Assignees
Labels
No labels