serpapi-javascript icon indicating copy to clipboard operation
serpapi-javascript copied to clipboard

Add support for request options

Open zyc9012 opened this issue 9 months ago • 0 comments

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.

zyc9012 avatar Apr 03 '25 07:04 zyc9012