国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

URLProtocolClient

2019-11-09 13:54:12
字體:
來源:轉載
供稿:網友

URLPRotocolClient主要用于對自定義的NSURLProtocol子類提供URL數據交互接口。

Symbols

1 Protocol Methods

// 重定向請求和返回數據public func urlProtocol(_ protocol: URLProtocol, wasRedirectedTo request: URLRequest, redirectResponse: URLResponse)// 校驗緩存是有效的public func urlProtocol(_ protocol: URLProtocol, cachedResponseIsValid cachedResponse: CachedURLResponse)// 設置請求回調數據的緩存策略public func urlProtocol(_ protocol: URLProtocol, didReceive response: URLResponse, cacheStoragePolicy policy: URLCache.StoragePolicy)// 回調請求對應的數據public func urlProtocol(_ protocol: URLProtocol, didLoad data: Data)// 加載完畢public func urlProtocolDidFinishLoading(_ protocol: URLProtocol)// 加載出錯public func urlProtocol(_ protocol: URLProtocol, didFailWithError error: Error)// 啟動身份驗證public func urlProtocol(_ protocol: URLProtocol, didReceive challenge: URLAuthenticationChallenge)// 取消證書驗證public func urlProtocol(_ protocol: URLProtocol, didCancel challenge: URLAuthenticationChallenge)

 


Appendix

Sample Code

Swift

URLProtocolClient

Revision History

時間 描述
2017-02-10 博文完成

CSDN:http://blog.csdn.net/y550918116j

GitHub:https://github.com/937447974


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 东阿县| 襄垣县| 屏东县| 凤阳县| 琼结县| 东乡族自治县| 雷州市| 大冶市| 滦平县| 新津县| 马山县| 金阳县| 江孜县| 新沂市| 泸水县| 大关县| 和田市| 万盛区| 绩溪县| 穆棱市| 昔阳县| 全州县| 民勤县| 济源市| 蕲春县| 韩城市| 大兴区| 樟树市| 遵义市| 东兴市| 福安市| 新乡市| 荆州市| 定襄县| 清河县| 乌拉特后旗| 玉溪市| 偏关县| 香河县| 平罗县| 平罗县|