URLProtocol URL拦截器 网络优化 劫持 劫持场景 劫持场景 protocol包括官方代码 NSURLSession使用说明及后台工作流程分析 ####步骤 注册拦截[NSURLProtocol registerClass:self]; 过滤请求: YES下一步 +canInitWithRequest: +canInitWithTask: 规范化请求: +canonicalRequestForRequest: 初始化NSURLProtocol: -initWithRequest:cachedResponse:client: 发请求: -startLoading -stopLoading -dealloc