[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/API/Fetch_API [Back]  [Original]

Fetch API - API | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Fetch API

Fetch API ( ). , XMLHttpRequest, API .

In this article

Fetch Request Response ( , ). , , service workers, Cache API , (requests) (responses), , .

, CORS HTTP origin, .

, GlobalFetch.fetch. , Window WorkerGlobalScope. .

fetch() , . promise, (Response) , . (. Request.)

Response , , (. Body.)

, Request() Response(), , . , , API (, FetchEvent.respondWith service workers.)

jQuery

fetch() jQuery.ajax() :

  • , fetch(), HTTP, HTTP 404 500. , ( ok false), - .
  • fetch() -; fetch.
  • fetch() -, credentials: 'same-origin'.

AbortController AbortSignal (aka The Abort API), , Fetch XHR, . .

Fetch

GlobalFetch

fetch(), .

Headers

/, .

Request

.

Response

.

Fetch

Body

, /, content-type , .

Specification
Fetch
# fetch-method
Fetch
# deferred-fetch

api.fetch

api.Window.fetchLater


Web Proxy Viewer  |  New URL  |  Original Page