Home  >  Q&A  >  body text

ios - NSURLProtocol 对 AFN / Alamofire 不可用?

如果我理解没错,NSURLProtocol 针对整个 URL Loading System 都有效,可以拦截所有的请求,但是经过测试,AFN / Alamofire 发出的请求都拦截不到,它们不是都基于 NSURLSession 吗?请问这是为什么?

PHP中文网PHP中文网2741 days ago330

reply all(1)I'll reply

  • 阿神

    阿神2017-04-18 09:16:51

    Is it best for the poster to solve it? Please share

    reply
    0
  • Cancelreply