🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API

★ 17,161⑂ 547👁 59⑃ 336● 454▤ 98
TypeScriptMITCreated 2018-09-04
Download: v2.2.0ky-2.2.0 ↓2.2.02026-10-09
-2
Daily
+15
Weekly
+40
Monthly
17,161
stars
547
forks
59
watchers
336
prs
454
issues
98
releases

Discussions

Latest release

v2.2.0 v2.2.0 2026-10-09
[!NOTE]
 In init hooks, options.headers now has lowercase names. Read and delete headers with lowercase names, for example delete options.headers.authorization.

 Improvements

- Add maxResponseSize option  0d59458
	- Limits the response body size in bytes, counted after decompression. Exceeding it throws the new ResponseSizeError.
- Let beforeRetry hooks change options for the next attempts (885)  242c327
	- Return {options: {...}} to change onUploadProgress, onDownloadProgress, timeout, fetch, or throwHttpErrors. For example, retry a failed upload without upload progress.
- Respect 

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON