AFNetworking
AFNetworking is a delightful networking library for iOS, macOS, watchOS, and tvOS. It's built on top of the Foundation URL Loading System, extending the powerful high-level networking abstractions built into Cocoa. It has a modular architecture with well-designed, feature-rich APIs that are a joy to use.
Perhaps the most important feature of all, however, is the amazing community of developers who use and contribute to AFNetworking every day. AFNetworking powers some of the most popular and critically-acclaimed apps on the iPhone, iPad, and Mac.
引用GitHub上的介绍,AFNetworking
是基于Foundation URL Loading System设计,是对NSURLSession
的高度集中封装,使其简单易用。
AFNetworking
主要由以下几部分组成:
AFURLSessionManager
-AFNetworking
的核心,用于管理NSURLSession
,生成NSURLSessionTask
以及处理NSURLSessionDelegate
等代理回调。
AFHTTPSessionManager
-继承自AFURLSessionManager
,专门用于HTTP
连接。
AFNetworkReachabilityManager
-网络连接检测
AFSecurityPolicy
-处理HTTPS
证书信任等
AFURLRequestSerialization
-序列化客户端的请求NSURLRequest
AFURLResponseSerialization
-序列化服务端的响应NSURLResponse
AFNetworking
相关文章:
[AFNetworking]一、简介
[AFNetworking]二、AFURLSessionManager
[AFNetworking]三、AFHTTPSessionManager
[AFNetworking]四、AFURLRequestSerialization
[AFNetworking]五、AFURLResponseSerialization
网友评论