

Result.on("data", function (dataBuffer) `)) There are 42 other projects in the npm registry using http-client. Start using http-client in your project by running npm i http-client. Latest version: 4.3.1, last published: 6 years ago. I've got a short https.get function working here. Compose HTTP clients using JavaScripts fetch API. Jest was chosen as it is very easy to configure and includes most of the features we need out-of-the-box.įurther investigation will be launched in foreseeable future to consider moving to Ava.I'm working on a project that requires https get and post methods. Zero-cost async stack traces make it easier to diagnose problems in production with heavily asynchronous code, as the error.stack property that is usually sent to log files/services now provides more insight into what caused the problem. We are turning on the -async-stack-traces flag by default. Secondly, the 7.3 release of V8 (ships with Node 12.x or higher) includes "zero-cost async stack traces". With the End-of-Life scheduled for April 2022, we are confident that most users will now be running 12.x or higher. In practice, this means consumers should run on Node 12 or higher, unless additional compilation/transpilation steps are in place to ensure compatibility with the target runtime.įirstly, according to the official Node release schedule, Node 12.x entered LTS on and is scheduled to enter Maintenance on. The project is configured to target ES2018. Modularity & Configurability It's important that users can compose and easily change the ways in which they consume and work with this package. If you're looking for async / await (linear, no callback), promises, compile time support and intellisense, we created a lightweight HTTP and REST client that fits that bill: Microsoft typed-rest-client Share edited at 13:20 Edwin Pratt 821 10 20 answered at 3:50 bryanmac 38. It has to be easy-to-find, well-documented, and pleasant to use.
#NPM HTTP CLIENT CODE#
Import Core design principlesĬode quality This package may end up being used in mission-critical software, so it's important that the code is performant, secure, and battle-tested.ĭeveloper experience Developers must be able to use this package with no significant barriers to entry.



Greatly reduces common boilerplate, expressly Http-client builds on the Node.js http module to enable highly performant, composable, and re-usable HTTP client implementations.Įnforces a consistent approach to writing HTTP clients. This is especially true in the microservices architecture context, where consistency is paramount.
