Closed RyanRamchandar closed 10 months ago
Retrofit supports cancelling a request via the @CancelRequest()
annotation, which uses Dio's cancellation feature. See: https://github.com/trevorwang/retrofit.dart/issues/85
Swagger does not have a designation in its scheme for cancel token
and for some headers
, so it will not work that way.
You'll have to add it manually.
Since we are passing a Dio() client, is there a way to use a cancellation token for requests?