Instance Property


The protocol’s cached response.


@NSCopying var cachedResponse: CachedURLResponse? { get }


If not overridden in a subclass, this method returns the cached response stored at initialization time.

See Also

Getting Protocol Attributes

var client: URLProtocolClient?

The object the protocol uses to communicate with the URL loading system.

protocol URLProtocolClient

The interface used by URLProtocol subclasses to communicate with the URL Loading System.

var request: URLRequest

The protocol’s request.

var task: URLSessionTask?

The protocol’s task.