只需将此添加到您的 Podfile 中
pod 'WRHttpDNS'
### 其他方法下载 WRHttpDNS 目录下的所有文件。
## 使用方法支持 NSURLSession 和 NSURLConnection,在真实请求之前调用方法。
[[WRHttpDNSManager shareInstance] useHttpDNSWithRequest:request];
如果网络响应错误,您应该检查错误。
[[WRHttpDNSManager shareInstance] checkHttpDNSError:error domain:domain]
如果要建立 https 连接,您应该实现一些类似 WRURLSessionDelegate
或 WRURLConnectionDelegate
的代理。
WRHttpDNS 采用 MIT 许可证发布。有关详细信息,请参阅 LICENSE。