class func unregisterClass (AnyClass)
URLProtocol
.
指定されたURLProtocol
のサブクラスを登録解除します。
URLProtocol
, making it visible to the URL loading system.
URLProtocol
のサブクラスの登録を試みます、それがURLローディングシステムに見えるようにします。
Availability 有効性
Technology
protocolClass
The subclass to register. 登録することになるサブクラス。
true
if the registration is successful, false
otherwise. The only failure condition is if protocol
is not a subclass of URLProtocol
.
true
、もし登録がうまくいくならば、そうでなければfalse
。唯一の失敗条件は、protocol
がURLProtocol
の下位クラスでない場合です。
Register any custom URLProtocol
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 URLProtocol
subclass to return true
when sent a can
message is used to load the request. There is no guarantee that all registered protocol classes will be consulted.
すべてのあつらえのURLProtocol
サブクラスをURLリクエストをする前に登録してください。URLローディングシステムがあるリクエストのロードを開始する時、それは各登録されたプロトコルクラスをその指定のリクエストで初期化しようと試みます。まずcan
メッセージを送信した時にtrue
を返すURLProtocol
サブクラスがそのリクエストをロードするために使われます。全ての登録されたプロトコルクラスが考慮に入れられる保証はありません。
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
で作成する過程を左右します。
class func unregisterClass (AnyClass)
URLProtocol
.
指定されたURLProtocol
のサブクラスを登録解除します。