TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Node.js is finally going to get the fetch API

39 pointsby yamafaktoryover 3 years ago

3 comments

mewpmewp2over 3 years ago
This is a bit off-topic, but am I the only one who thinks &quot;fetch&quot; API is weird?<p>To me the first thing that irks me is the name itself. &quot;Fetch&quot;. Simply because api calls that you are making don&#x27;t have to be about fetching something. You can make a request to create, update or delete something. Why this type of naming? Even for retrieving information the name just seems a bit random.
评论 #30137177 未加载
评论 #30139423 未加载
chrisma0over 3 years ago
Good news!<p>However, according to Robert Nagy&#x27;s comment they seem to struggle with test coverage for the feature: &quot;There is little interest in writing those [tests for fetch]. To the point where it kind of is blocking further work towards spec compliance&quot;. Interesting that this is the main holdup right now.
ttfkamover 3 years ago
For someone in the know, what&#x27;s the advantage of adding this to core rather than using the existing node-fetch package I&#x27;ve been using for years? I mean, the API&#x27;s basically the same, right?
评论 #30138684 未加载