The request() method returns a Cancellable, which has only one public function, cancel(), which you can use to cancel the request
About MoyaProvider
The request() method returns a Cancellable, which has only one public function, cancel(), which you can use to cancel the request
About MoyaProvider
But don't forget to keep a reference for it in property. If it gets deallocated you'll see -999 "cancelled" error on response.
About MoyaProvider
Providers map Targets to Endpoints, then map Endpoints to actual network requests