CompositeEventMonitor
public final class CompositeEventMonitor : EventMonitor
An EventMonitor
which can contain multiple EventMonitor
s and calls their methods on their queues.
-
Declaration
Swift
public let queue: DispatchQueue
-
Declaration
Swift
public func urlSession(_ session: URLSession, didBecomeInvalidWithError error: (any Error)?)
-
Declaration
Swift
public func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge)
-
Declaration
Swift
public func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64)
-
Declaration
Swift
public func urlSession(_ session: URLSession, taskNeedsNewBodyStream task: URLSessionTask)
-
Declaration
Swift
public func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest)
-
Declaration
Swift
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics)
-
Declaration
Swift
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
-
Declaration
Swift
public func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask)
-
Declaration
Swift
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse)
-
Declaration
Swift
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
-
Declaration
Swift
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse)
-
Declaration
Swift
public func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64)
-
Declaration
Swift
public func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64)
-
Declaration
Swift
public func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL)
-
Declaration
Swift
public func request(_ request: Request, didCreateInitialURLRequest urlRequest: URLRequest)
-
Declaration
Swift
public func request(_ request: Request, didAdaptInitialRequest initialRequest: URLRequest, to adaptedRequest: URLRequest)
-
Declaration
Swift
public func request(_ request: Request, didCreateURLRequest urlRequest: URLRequest)
-
Declaration
Swift
public func request(_ request: Request, didCreateTask task: URLSessionTask)
-
Declaration
Swift
public func request(_ request: Request, didGatherMetrics metrics: URLSessionTaskMetrics)
-
Declaration
Swift
public func requestIsRetrying(_ request: Request)
-
Declaration
Swift
public func requestDidFinish(_ request: Request)
-
Declaration
Swift
public func requestDidResume(_ request: Request)
-
Declaration
Swift
public func request(_ request: Request, didResumeTask task: URLSessionTask)
-
Declaration
Swift
public func requestDidSuspend(_ request: Request)
-
Declaration
Swift
public func request(_ request: Request, didSuspendTask task: URLSessionTask)
-
Declaration
Swift
public func requestDidCancel(_ request: Request)
-
Declaration
Swift
public func request(_ request: Request, didCancelTask task: URLSessionTask)
-
Declaration
Swift
public func request(_ request: DataRequest, didValidateRequest urlRequest: URLRequest?, response: HTTPURLResponse, data: Data?, withResult result: Request.ValidationResult)
-
Declaration
Swift
public func request(_ request: DataRequest, didParseResponse response: DataResponse<Data?, AFError>)
-
Declaration
Swift
public func request<Value>(_ request: DataRequest, didParseResponse response: DataResponse<Value, AFError>) where Value : Sendable
-
Declaration
Swift
public func request(_ request: DataStreamRequest, didValidateRequest urlRequest: URLRequest?, response: HTTPURLResponse, withResult result: Request.ValidationResult)
-
Declaration
Swift
public func request<Value>(_ request: DataStreamRequest, didParseStream result: Result<Value, AFError>) where Value : Sendable
-
Declaration
Swift
public func request(_ request: UploadRequest, didCreateUploadable uploadable: UploadRequest.Uploadable)
-
Declaration
Swift
public func request(_ request: UploadRequest, didFailToCreateUploadableWithError error: AFError)
-
Declaration
Swift
public func request(_ request: UploadRequest, didProvideInputStream stream: InputStream)
-
Declaration
Swift
public func request(_ request: DownloadRequest, didFinishDownloadingUsing task: URLSessionTask, with result: Result<URL, AFError>)
-
Declaration
Swift
public func request(_ request: DownloadRequest, didCreateDestinationURL url: URL)
-
Declaration
Swift
public func request(_ request: DownloadRequest, didValidateRequest urlRequest: URLRequest?, response: HTTPURLResponse, fileURL: URL?, withResult result: Request.ValidationResult)
-
Declaration
Swift
public func request(_ request: DownloadRequest, didParseResponse response: DownloadResponse<URL?, AFError>)
-
Declaration
Swift
public func request<Value>(_ request: DownloadRequest, didParseResponse response: DownloadResponse<Value, AFError>) where Value : Sendable