Open autistic-code opened 2 years ago
You can use the core HTTP options to set a custom agent. For example with the node package https-proxy-agent, you can define an agent including your custom proxy and refer it in the core HTTP options. Would look something like:
import { HttpsProxyAgent } from "https-proxy-agent"; const agent = new HttpsProxyAgent("https://your-proxy.com"); await p({ url: "https://ethanent.me/name", core: { agent: agent, }, });
You can also use different proxy agent packages like proxy-agent.
Hope this helps future viewers.
You can use the core HTTP options to set a custom agent. For example with the node package https-proxy-agent, you can define an agent including your custom proxy and refer it in the core HTTP options. Would look something like:
You can also use different proxy agent packages like proxy-agent.
Hope this helps future viewers.