🍋
Menu
Web

Fetch API

JavaScript Fetch API

A modern browser API for making HTTP requests using Promises, replacing the older XMLHttpRequest.

技術的詳細

Fetch API is part of the web platform's core infrastructure. Modern browsers implement modern through standardized Web APIs, ensuring consistent behavior across Chrome, Firefox, Safari, and Edge. The relevant specifications are maintained by the W3C, WHATWG, or IETF. Understanding the underlying protocol or mechanism helps developers use fetch api correctly, avoid common pitfalls, and optimize for performance and security.

```javascript
// Fetch API: web API example
const response = await fetch('/api/resource');
const data = await response.json();
console.log(data);
```

関連ツール

関連用語