RequestRetrierProtocol
public protocol RequestRetrierProtocol : AnyObject
请求重试器协议
-
处理重试请求,处理完成回调是否需要重试
Declaration
Swift
func retryRequest(_ request: HTTPRequest, response: URLResponse, responseObject: Any?, error: Error?, completionHandler: @escaping @Sendable (_ shouldRetry: Bool) -> Void)