Skip to main content
Bun 实现了 Web 标准的 fetch API,用于发送 HTTP 请求。要向某个 URL 发送 GET 请求:
fetch.ts

要向 API 端点发送 POST 请求:
fetch.ts