/fetch-abort-controller

Playing around with Fetch and AbortController

Primary LanguageHTML

AbortController test

Playing around with AbortController and Fetch API.

Usage

Clicking on "Fetch" button sends request to /api endpoint, which has 10 seconds timeout for response. Clicking "Abort" - cancels the request if it's still pending.

License

MIT