app-store-server-library-node icon indicating copy to clipboard operation
app-store-server-library-node copied to clipboard

Add support for using an HTTP proxy

Open forty opened this issue 1 month ago • 0 comments

Hello,

we would like to be able to use an outgoing proxy with this library (our server don't have direct internet connection). One current option is to overload makeFetchRequest (great design decision to have put it in its own method btw) and add the agent option here, but on the other hand it forces to add a direct dependency to node-fetch and maybe ties our code a bit to much to implementation details of this library. So what I suggest would be to have a function setHttpAgent to set a this.httpAgent, and then use this httpAgent as the agent parameter of fetch in makeFetchRequest.

What do you think? I can make a MR if you are okay with this idea.

Thanks

forty avatar Nov 24 '25 14:11 forty