serpapi-javascript
serpapi-javascript copied to clipboard
Add support for request options
Resolves https://github.com/serpapi/serpapi-javascript/issues/27
This PR was initially for supporting the proxy feature natively. Unfortunately, HttpsProxyAgent isn't supported in some of the older NodeJS versions that this library promises to support.
As a fallback, this PR allows users to pass their own http.RequestOptions so they can set the agent to be the proxy agent they want.