@@ -9,7 +9,7 @@ This package:
99+ Does ** not** throw on non-OK HTTP responses.
1010+ ** Can fully type all possible HTTP responses depending on the HTTP status code, even non-standard ones like 499.**
1111+ ** Supports abortable HTTP requests; no boilerplate.**
12- + ** Can Auto -abort HTTP requests in favor of newer request versions.**
12+ + ** Can auto -abort HTTP requests in favor of newer request versions, with optional delaying (debouncing) .**
1313+ Works in any runtime that implements ` fetch() ` (browsers, NodeJS, etc.).
1414+ Is probably the tiniest fetch wrapper you'll ever need: ** 342 LOC** including typing (` npx cloc .\src --exclude-dir=tests ` ).
1515
@@ -144,7 +144,7 @@ else {
144144> Since ** v0.8.0**
145145
146146This library currently supports, out of the box, the OK status codes, client error status codes and server error status
147- codes that the MDN website list , and are therefore considered standardized.
147+ codes that the MDN website lists , and are therefore considered standardized.
148148
149149If you need to type a response based on any other status code not currently supported, just do something like this:
150150
@@ -361,7 +361,7 @@ the HTTP request. Furthermore, the abort controllers are disposed as soon as th
361361### Delaying an Auto-Abortable HTTP Request
362362
363363Aborting the HTTP request (the call to ` fetch() ` ) is usually not the only thing that front-end developers do in cases
364- like the autocomplete component. Developers usually also debounce the action of making the HTTP request for a short
364+ like the autocomplete component. Developers usually also debounce the action of executing the HTTP request for a short
365365period of time (around 500 milliseconds).
366366
367367You can do this very easily as well with ` dr-fetch ` . There is no need to program the debouncing externally.
0 commit comments