RequestDelegate
public protocol RequestDelegate : AnyObject, Sendable
Protocol abstraction for Request‘s communication back to the SessionDelegate.
-
URLSessionConfigurationused to create the underlyingURLSessionTasks.Declaration
Swift
var sessionConfiguration: URLSessionConfiguration { get } -
Determines whether the
Requestshould automatically callresume()when adding the first response handler.Declaration
Swift
var startImmediately: Bool { get } -
Asynchronously ask the delegate whether a
Requestwill be retried.Declaration
Swift
func retryResult(for request: Request, dueTo error: AFError, completion: @escaping @Sendable (RetryResult) -> Void)Parameters
requestRequestwhich failed.errorErrorwhich produced the failure.completionClosure taking the
RetryResultfor evaluation.
View on GitHub
Install in Dash