Skip to content

Can't use NSURLProtocol intercepts requests #1247

@Yannmm

Description

@Yannmm

As far as I know, NSURLProtocl could intercepts all reqeuests sent by URL Loading System. But after testing Alamofire (as well as AFN), My custom NSURLProtocol couldn't intercepts those requests sent by it, whici means the protocol's "canInitWithRequest" won't be consulted, but for those sent by NSURLSession, this method could be invoked.

anyone could help me ?
thx

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions