Comments (3)
we would just have something like this (agent is really SuperAgent, the constructor):
var myagent = agent('whatever.com');
myagent.get();
etc, similar to what you want but I think we should keep the host as the initializer, at least for now so that we can map the agents from that call
from superagent.
Agree, putting ssl, host and port option to constructor would be fine too.
from superagent.
closing for now
from superagent.
Related Issues (20)
- request.field('test', 'str') throwing error Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'.
- 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
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.