AWSURLRequestRetryHandler

Objective-C

@protocol AWSURLRequestRetryHandler <NSObject>

@required

@property (nonatomic, assign) uint32_t maxRetryCount;

- (AWSNetworkingRetryType)shouldRetry:(uint32_t)currentRetryCount
                      originalRequest:(AWSNetworkingRequest *)originalRequest
                             response:(NSHTTPURLResponse *)response
                                 data:(NSData *)data
                                error:(NSError *)error;

- (NSTimeInterval)timeIntervalForRetry:(uint32_t)currentRetryCount
                              response:(NSHTTPURLResponse *)response
                                  data:(NSData *)data
                                 error:(NSError *)error;

@optional

- (NSDictionary *)resetParameters:(NSDictionary *)parameters;

@end

Swift

protocol AWSURLRequestRetryHandler : NSObjectProtocol

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) uint32_t maxRetryCount

    Swift

    var maxRetryCount: UInt32 { get set }
  • Undocumented

    Declaration

    Objective-C

    - (AWSNetworkingRetryType)shouldRetry:(uint32_t)currentRetryCount
                          originalRequest:(AWSNetworkingRequest *)originalRequest
                                 response:(NSHTTPURLResponse *)response
                                     data:(NSData *)data
                                    error:(NSError *)error;

    Swift

    func shouldRetry(_ currentRetryCount: UInt32, originalRequest: AWSNetworkingRequest!, response: HTTPURLResponse!, data: Data!, error: Error!) -> AWSNetworkingRetryType
  • Undocumented

    Declaration

    Objective-C

    - (NSTimeInterval)timeIntervalForRetry:(uint32_t)currentRetryCount
                                  response:(NSHTTPURLResponse *)response
                                      data:(NSData *)data
                                     error:(NSError *)error;

    Swift

    func timeInterval(forRetry currentRetryCount: UInt32, response: HTTPURLResponse!, data: Data!, error: Error!) -> TimeInterval
  • Undocumented

    Declaration

    Objective-C

    - (NSDictionary *)resetParameters:(NSDictionary *)parameters;

    Swift

    optional func resetParameters(_ parameters: [AnyHashable : Any]!) -> [AnyHashable : Any]!