Creates a URL protocol instance to handle the task.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A task containing a URL request to be performed by the protocol.
A cached response for the task; may be
nilif there is no existing cached response for the task.
An object that provides an implementation of the
URLProtocolprotocol that this instance uses to communicate with the URL loading system. This client object is retained.
The initialized protocol object.
Subclasses should override this method to do any custom initialization. Don’t call this method explicitly. When you register your custom protocol class, the system will initialize instances of your protocol as needed.
This initializer calls through to