Comments (8)
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.
+1
from superagent.
This gist from @shigeki looks like it ?
https://gist.github.com/shigeki/2921169
if he's all right with using it.
from superagent.
^ 👍
from superagent.
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.
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.
Checkout superagent-proxy
from superagent.
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)
- how to send gzip compressed body superagent
- Does superagent support ALPN for http2 ? HOT 5
- Notice regarding the move from @visionmedia org to @ladjs org HOT 4
- Cookies are sent to domains that are not allowed HOT 1
- [fix] request hangs forever for non-responding servers (default timeout would fix this)
- [fix] Following redirects discards set cookies without explicit domain HOT 5
- [feat] Switch to `undici` (PR welcome) HOT 5
- [feat] Configuring request header before specifying the method HOT 1
- Unix socket is expected to be encoded with `%2F`
- [fix] seralization error of BigInt does not throw an exception HOT 3
- superagent dependancy package semver latest version is not upgrading for yarn install HOT 2
- [fix] Can't handle socket hangup (pipe)
- [fix] Error: Cannot find module 'node:url' HOT 3
- [proposal] Only using node testing tools HOT 3
- Please upgrade to latest, formidable@v3! Check these notes: https://bit.ly/2ZEqIau HOT 8
- The agent() set default behavior is nonsensical
- [fix] TypeError: hexoid is not a function in Formidable.js when using Webpack + TypeScript HOT 1
- [fix] TypeError: req.setNoDelay is not a function HOT 1
- [bug] Setting cookies does not take effect
- [fix] qs.stringify does not serialise arrays in objects according to documentation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superagent.