brycebaril / client-request Goto Github PK
View Code? Open in Web Editor NEWA zero-dependency stripped-down http client request module based on the http://npm.im/request API.
License: MIT License
A zero-dependency stripped-down http client request module based on the http://npm.im/request API.
License: MIT License
Is this es3 compatible? Does it fallback to XDR for IE8/9?
If I set
const options = {
url: "http://example.com"
}
request(options, callback)
it fails with (from url.parse):
TypeError: Parameter "url" must be a string, not undefined
Which is a little bit confusing at the beginning (if you don't read the docs ๐)
Do you think it can support options.uri || options.url
to avoid confusions?
All the timeout handing logic is overridden with custom errors, making it unwieldy to catch 408 / client timeouts for retries since the ECONNRESET
code is not propagated.
My CI don't want to go green on 0.10.x due to client-request
. Problem is due to require('util').debuglog
which has been introduced by 0.11.x
There is a "polyfill" node-debuglog
but adding a dependency for this thing would be really shame.
I don't known why we even tests our code on 0.10 ^^ Maybe it would be great to write it in doc.
Just for your knowledge... I will sleep on it and probably remove this version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.