-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace deprecated "request" library #29
Comments
Hi. This looks interesting. |
For what I investigated, maybe node's default http api could be enough. We only do head or get requests with a few headers, and we don't process the response body. |
The case for using a library is that it will also handle proxies, which are likely a common need for a library like this that is used a lot in CI setups |
Sorry guys. Official workload increased. unassigning myself |
|
@nschonni What lib would you suggest? |
The built-in module would be ideal, but if it doesn’t have the features
people are looking for (e.g. good proxy support), then maybe try “needle”.
I’ve had a positive experience with “make-fetch-happen” as well.
…On Wed, Oct 14, 2020 at 4:39 PM Nicolas MASSART ***@***.***> wrote:
What lib would you suggest?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABU5EH7JM3LJVWTXWKRO4LSKYD7HANCNFSM4SK4XMRA>
.
|
Migration from request to Needle also seems very easy. |
I am not the best person in node dev, but if no one is working on this, I can try building something up. Let me know if I can be of help. |
You are very welcome to help! I assign issue this to you and move it to "in progress". |
Should I be using promises, or traditional callbacks? |
I agree with callback first for compatibility and then promises. That seems the wise choice. |
hi @ThunderSon did you already start working on this? |
update debug dep as the lower version shipped with Mocha is vulnerable replace deprecated use of legacy Node URL by new WHATWG URL API See https://nodejs.org/api/url.html#url_legacy_url_api update tests as timeout and redirect return changes with Needle fixes tcort#29
Request is deprecated and will never be updated or fixed.
Migrating to a new supported library is required for long term.
Does anyone have thoughts on which one we should choose?
Would the core node.js http be enough?
Note that we only need to be able to do HEAD and GET requests. We need to be able to pass auth and any additional headers, get HTTP codes, body and response headers.
The text was updated successfully, but these errors were encountered: