您现在的位置是:首页 > web开发 > NSURLProtocol

NSURLProtocol

web开发作者:dayu日期:10天前点击:4

implementation is used to perform the URL load. There is no

guarantee that all registered protocol classes will be consulted.

Hence, it should be noted that registering a class places it first

on the list of classes that will be consulted in calls to

<tt>+canInitWithRequest:</tt>, moving it in front of all classes

that had been registered previously.

<p>A similar design governs the process to create the canonical form

of a request with the <tt>+canonicalRequestForRequest:</tt> class

method.

@param protocolClass the class to register.

@result YES if the protocol was registered successfully, NO if not.

The only way that failure can occur is if the given class is not a

subclass of NSURLProtocol.

NSURLProtocol

原文地址:http://www.cnblogs.com/feng9exe/p/7203436.html


下一篇       上一篇