sindresorhus / awesome-nodejs

:zap: Delightful Node.js packages and resources
https://node.cool
Creative Commons Zero v1.0 Universal
58.67k stars 5.85k forks source link

feat: add petitio #1149

Closed tbnritzdoge closed 2 years ago

tbnritzdoge commented 3 years ago

https://github.com/helperdiscord/petitio

⬆⬆⬆⬆⬆⬆⬆⬆⬆⬆

sindresorhus commented 2 years ago

I have been doing HTTP clients for years. My most important lesson is that tiny HTTP clients are the ones no one are using, because when a HTTP client meets reality of networking, it's impossible to keep it small. Also, microbenchmarking HTTP clients with a local server makes no sense. The bottleneck of HTTP clients is networking.

I'm going to pass on this for now, but I'll reconsider if your HTTP client becomes widely used and more mature.