RequestInterceptor
public protocol RequestInterceptor : RequestAdapter, RequestRetrier
Type that provides both RequestAdapter and RequestRetrier functionality.
-
adapt(_:for:completion:)Extension method -
retry(_:for:dueTo:completion:)Extension methodDeclaration
Swift
public func retry( _ request: Request, for session: Session, dueTo error: Error, completion: @escaping (RetryResult) -> Void)
View on GitHub
Install in Dash
RequestInterceptor Protocol Reference