Giter VIP home page Giter VIP logo

Comments (8)

PeterDaveHello avatar PeterDaveHello commented on August 28, 2024 1

hmmm ... sorry to comment on an old issue, but I have a question, no offense, can't we just respect the environment variable http_proxy but can only rely on another package? Thanks.

from superagent.

Filirom1 avatar Filirom1 commented on August 28, 2024

+1

from superagent.

kapouer avatar kapouer commented on August 28, 2024

This gist from @shigeki looks like it ?
https://gist.github.com/shigeki/2921169
if he's all right with using it.

from superagent.

anthonyshort avatar anthonyshort commented on August 28, 2024

^ 👍

from superagent.

shigeki avatar shigeki commented on August 28, 2024

I'm very surprised that my gist was founded in this issue thread. This patch is for the man who was in trouble to use tower.js inside his proxy. As described in the gist, it needs node-tunnel module for SSL proxy.
Please free to use or modify this as you like.

from superagent.

kapouer avatar kapouer commented on August 28, 2024

A second thought about this : it would be easier to have a superagent-proxy module that declares "tunnel" as a dependency, instead of having superagent depend on it directly.

from superagent.

gjohnson avatar gjohnson commented on August 28, 2024

Checkout superagent-proxy

from superagent.

kornelski avatar kornelski commented on August 28, 2024

AFAIK node's own http request handling doesn't automagically pick the proxy, and superagent behaving differently could surprising, so an explicit superagent-proxy call seems like an OK solution to me.

from superagent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.