- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The subclass to register.
YES if the registration is successful,
NO otherwise. The only failure condition is if
protocol is not a subclass of
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.
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