Skip to content

Commit bfb33f0

Browse files
authored
docs: Minor updates and corrections (#30)
1 parent eb86c90 commit bfb33f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
146146
This 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

149149
If 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

363363
Aborting 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
365365
period of time (around 500 milliseconds).
366366

367367
You can do this very easily as well with `dr-fetch`. There is no need to program the debouncing externally.

0 commit comments

Comments
 (0)