Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support specifying extra options for the CurlClient #216

Open
aik099 opened this issue Dec 27, 2024 · 0 comments
Open

Support specifying extra options for the CurlClient #216

aik099 opened this issue Dec 27, 2024 · 0 comments
Milestone

Comments

@aik099
Copy link
Member

aik099 commented Dec 27, 2024

Plan:

  1. add array $extra_options = array() to the CurlClient:__construct method
  2. in the CurlClient:__construct method store given $extra_options array into a new protected $extraOptions class property
  3. in the CurlClient::sendRequest method use curl_setopt function to set $this->extraOptions to the current cURL connection

Motivation

This should cover the following use cases (maybe some future cases also):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant