sindresorhus / awesome-nodejs

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

feat: add petitio #1149

Closed tbnritzdoge closed 2 years ago

tbnritzdoge commented 2 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.