RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.64k stars 1.23k forks source link

Support Axios Abort Controller #3905

Open maxime-ducoroy opened 2 years ago

maxime-ducoroy commented 2 years ago

Hello,

Axios deprecates the use of the cancel token to cancel a request, they have implemented an Abort Controller. Will you support it in the generation of the Ts Client that uses the Axios template ?

More information: https://axios-http.com/docs/cancellation

lahma commented 2 years ago

Maybe you could create a PR showing how the change could be done?

fmg-lydonchandra commented 1 year ago

Hi @lahma , could you pls review PR for this Axios Abort Controller

BenJenkinson commented 1 year ago

Hi @RicoSuter

This issue should also be fixed by #4282 & can be closed.