Skip to content

Add support for using an HTTP proxy #352

@forty

Description

@forty

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions