+ unregisterClass:
NSURLProtocol
.
指定されたNSURLProtocol
のサブクラスを登録解除します。
NSURLProtocol
, making it visible to the URL loading system.
NSURLProtocol
のサブクラスの登録を試みます、それがURLローディングシステムに見えるようにします。
Availability 有効性
Technology
+ (BOOL)registerClass:(Class)protocolClass;
protocolClass
The subclass to register. 登録することになるサブクラス。
YES
if the registration is successful, NO
otherwise. The only failure condition is if protocol
is not a subclass of NSURLProtocol
.
YES
、もし登録がうまくいくならば、そうでなければNO
。唯一の失敗条件は、protocol
がNSURLProtocol
の下位クラスでない場合です。
Register any custom NSURLProtocol
subclasses prior to making URL requests. When the URL loading system begins to load a request, it tries to initialize each registered protocol class with the specified request. The first NSURLProtocol
subclass to return YES
when sent a can
message is used to load the request. There is no guarantee that all registered protocol classes will be consulted.
すべてのあつらえのNSURLProtocol
サブクラスをURLリクエストをする前に登録してください。URLローディングシステムがあるリクエストのロードを開始する時、それは各登録されたプロトコルクラスをその指定のリクエストで初期化しようと試みます。まずcan
メッセージを送信した時にYES
を返すNSURLProtocol
サブクラスがそのリクエストをロードするために使われます。全ての登録されたプロトコルクラスが考慮に入れられる保証はありません。
Classes are consulted in the reverse order of their registration. A similar design governs the process to create the canonical form of a request with canonical
.
クラスは、それら登録の受け取り順で考慮に入れられます。同様の設計は、リクエストの正準形式をcanonical
で作成する過程を左右します。
+ unregisterClass:
NSURLProtocol
.
指定されたNSURLProtocol
のサブクラスを登録解除します。