axios-mock-adapter icon indicating copy to clipboard operation
axios-mock-adapter copied to clipboard

support for AbortController

Open nicks opened this issue 3 years ago • 2 comments

From https://axios-http.com/docs/cancellation:

Starting from v0.22.0 Axios supports AbortController to cancel requests in fetch API way.

But as far as I can tell, this library only mocks the old cancelToken-based API: https://github.com/ctimmerm/axios-mock-adapter/issues/59

Would you be open to also supporting AbortController?

nicks avatar Jun 27 '22 19:06 nicks

Spent an hour setting up this library only to realize that it did not even support the AbortController.

FlorianCassayre avatar Oct 07 '22 12:10 FlorianCassayre