Creates a URL protocol instance to handle the request.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The URL request for the URL protocol object. This request is retained.
A cached response for the request; it may be
nilif there is no existing cached response for the request.
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 is the designated initializer for