You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem/Question
In some cases I need to get UploadRequest to perform operation like cancel, suspend and resume it, but Moya return only Cancellable.
So there is the question: how can I get UploadRequest that Alamofire provide or manage the request using Moya? Should I use Alamofire directly?
Sample code
I've try to do something like that, but, because of internal access modifier of CancellableWrapper, I can't cast it to get UploadRequest.
func handleRequest(_ request:anyCancellable){
guard
let wrapper = request as?CancellableWrapper,let token = wrapper.innerCancellable as?CancellableTokenlet uploadRequest = token.request as?UploadRequestelse{return}// NOTE: Do something with UploadRequest}
The text was updated successfully, but these errors were encountered:
Version
Moya: 15.0.3
Problem/Question
In some cases I need to get
UploadRequest
to perform operation like cancel, suspend and resume it, butMoya
return onlyCancellable
.So there is the question: how can I get
UploadRequest
thatAlamofire
provide or manage the request usingMoya
? Should I useAlamofire
directly?Sample code
I've try to do something like that, but, because of
internal
access modifier ofCancellableWrapper
, I can't cast it to getUploadRequest
.The text was updated successfully, but these errors were encountered: