This commit is contained in:
启星
2025-08-08 10:49:36 +08:00
parent 6400cf78bb
commit b5ce3d580a
8780 changed files with 978183 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
//
// OSSURLRequestRetryHandler.h
// AliyunOSSSDK
//
// Created by huaixu on 2018/1/22.
// Copyright © 2018年 aliyun. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "OSSConstants.h"
@class OSSNetworkingRequestDelegate;
NS_ASSUME_NONNULL_BEGIN
/**
The retry handler interface
*/
@interface OSSURLRequestRetryHandler : NSObject
@property (nonatomic, assign) uint32_t maxRetryCount;
+ (instancetype)defaultRetryHandler;
- (OSSNetworkingRetryType)shouldRetry:(uint32_t)currentRetryCount
requestDelegate:(OSSNetworkingRequestDelegate *)delegate
response:(NSHTTPURLResponse *)response
error:(NSError *)error;
- (NSTimeInterval)timeIntervalForRetry:(uint32_t)currentRetryCount
retryType:(OSSNetworkingRetryType)retryType;
@end
NS_ASSUME_NONNULL_END