AFURLRequestSerialization
NSURLSessionDownloadDelegate
- URLSession:downloadTask:didFinishDownloadingToURL: - URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesWritten:totalBytesExpectedToWrite: - URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:
AFURLSessionManager
+ attribute2:type- attribute3:type
NSURLSession *session; NSOperationQueue *operationQueue; id responseSerializer; AFSecurityPolicy *securityPolicy; AFNetworkReachabilityManager *reachabilityManager; NSArray *tasks; NSArray *dataTasks; NSArray *uploadTasks; NSArray *downloadTasks; dispatch_queue_t completionQueue; dispatch_group_t completionGroup; BOOL attemptsToRecreateUploadTasksForBackgroundSessions;
NSURLSessionDelegate
- URLSession:didBecomeInvalidWithError: - URLSession:didReceiveChallenge:completionHandler: - URLSessionDidFinishEventsForBackgroundURLSession:
AFHTTPSessionManager
+ (instancetype)manager;- (instancetype)initWithBaseURL:- (instancetype)initWithBaseURL: sessionConfiguration:- (nullable NSURLSessionDataTask *)GET:parameters:progress: success:failure:- (nullable NSURLSessionDataTask *)POST:parameters:progress: success:failure:
NSURL *baseURL;AFHTTPRequestSerializer * requestSerializer;AFHTTPResponseSerializer * responseSerializer;
NSURLSessionDataDelegate
- URLSession:dataTask:didReceiveResponse:completionHandler: - URLSession:dataTask:didBecomeDownloadTask: - URLSession:dataTask:didReceiveData: - URLSession:dataTask:willCacheResponse:completionHandler:
NSURLSessionTaskDelegate
- URLSession:willPerformHTTPRedirection:newRequest:completionHandler: - URLSession:task:didReceiveChallenge:completionHandler: - URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - URLSession:task:didCompleteWithError:
组合
Protocol
AFURLResponseSerialization