request module is moving to maintenance mode, we should eventually find a new HTTP client.
I tried to upgrade to got. got works well for simple use cases, but stops working for non-trivial requests (e.g. when a proxy is involved). What's worse, it replaces errors reported by Node.js core with its own error classes, which makes troubleshooting extremely difficult 😞 It seems that other popular clients like node-fetch and axios are doing the same mistake 😞
(UPDATED on Jun 12, 2019)
Acceptance Criteria
It can be a reusable component/module where we can customize the behavior.
requestmodule is moving to maintenance mode, we should eventually find a new HTTP client.I tried to upgrade to
got.gotworks well for simple use cases, but stops working for non-trivial requests (e.g. when a proxy is involved). What's worse, it replaces errors reported by Node.js core with its own error classes, which makes troubleshooting extremely difficult 😞 It seems that other popular clients likenode-fetchandaxiosare doing the same mistake 😞(UPDATED on Jun 12, 2019)
Acceptance Criteria
requestalternatives (e.g.axiosandnode-fetch), find one that meets the following requirements:@loopback/http-caching-proxytoo.node-fetchAPI.It can be a reusable component/module where we can customize the behavior.