📘 fetch()

native browser feature that provides promise based HTTP requests [converted by browser]

🌀 Options

Essential Properties:

Parsing the Body:

Method Purpose
response.blob() Binary file like images
response.arrayBuffer() Low-level binary (audio, video)
response.body A ReadableStream for chunked reading [LARGE FILES]

Some headers like Cookie, Referer, and Origin are controlled by the browser and cannot be set manually.

🔢 Supported Payload Formats

🖼️ Example: Uploading Images from Canvas