TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Node.js is finally going to get the fetch API

39 点作者 yamafaktory超过 3 年前

3 条评论

mewpmewp2超过 3 年前
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 未加载
chrisma0超过 3 年前
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.
ttfkam超过 3 年前
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 未加载