Replacing Request.js with Got
See original GitHub issueAs you probably know Request.js
has been officially deprecated since Feb 11, 2020. Request.js is the HTTP library that Artillery uses under the hood.
Work on moving to Got.js is already underway and is expected to complete soon.
Why Got
- Lots of features, see the feature comparison table for details. HTTP/2 support is especially promising.
- Actively developed & maintained.
- Migration looks to be quite straightforward.
When
Soon™️. A preview release should be available in the next few days.
Update 10/05 master
is now fully-migrated to Got.js with full-backwards compatibility. The plan is to increase test coverage before marking the work as done.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Request is going into maintenance mode, this is what you ...
As a starting point, here's a list of good alternatives to replace request , all of which rely on the new, post-Node.js 8.x...
Read more >Alternative libraries to request · Issue #3143 - GitHub
We have a good comparison between got , request , node-fetch , axios , and ... Consider replacing request package nodejs/node-gyp#1707.
Read more >node.js - Replacing depreciated request npm module with got
I am trying to replace requests using depreciated request npm module with got. When I hardcode my api key it works fine.
Read more >NodeJS: migrate from deprecated Request package to Got
NodeJS: migrate from deprecated Request package to Got · Possible alternatives and decision for Got · Basic migration steps · Authorization Header ...
Read more >got - npm
Human-friendly and powerful HTTP request library for Node.js. Latest version: 12.5.3 ... Start using got in your project by running `npm i got`....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
test file:
master:
All virtual users finished
Summary report @ 14:50:38(+0300) 2020-03-31 Total time: 2 minutes, 18 seconds http.request_rate: … 435/sec avg http.response_rate: … 435/sec avg scenarios.created.Scenario 1: … 60000 scenarios.created.total: … 60000 scenarios.completed: … 60000 http.requests: … 60000 http.codes.200: … 60000 http.responses: … 60000 scenarios.duration: min: … 2 max: … 469.9 median: … 5 p95: … 9 p99: … 17 http.response_time: min: … 2 max: … 430.9 median: … 5 p95: … 7 p99: … 13
1.6.0-29 All virtual users finished Summary report @ 14:23:27(+0300) 2020-03-31 Scenarios launched: 60000 Scenarios completed: 60000 Requests completed: 60000 RPS sent: 914.91 Request latency: min: 0.2 max: 99.4 median: 1.8 p95: 2.7 p99: 3.9 Scenario counts: Scenario 1: 60000 (100%) Codes: 200: 60000
New version of Artillery’s HTTP engine using Got is now on
master
.