RequestRetrier
public protocol RequestRetrier
                A type that determines whether a request should be retried after being executed by the specified session manager and encountering an error.
- 
                  
                  
Determines whether the
Requestshould be retried by calling thecompletionclosure.This operation is fully asynchronous. Any amount of time can be taken to determine whether the request needs to be retried. The one requirement is that the completion closure is called to ensure the request is properly cleaned up after.
Declaration
Swift
func should(_ manager: SessionManager, retry request: Request, with error: Error, completion: @escaping RequestRetryCompletion)Parameters
managerThe session manager the request was executed on.
requestThe request that failed due to the encountered error.
errorThe error encountered when executing the request.
completionThe completion closure to be executed when retry decision has been determined.
 
      RequestRetrier Protocol Reference