Protocol

URLProtocol​Client

The NSURLProtocol​Client protocol provides the interface used by NSURLProtocol subclasses to communicate with the URL loading system. An application should never have the need to implement this protocol.

Symbols

Protocol Methods

func url​Protocol(URLProtocol, cached​Response​Is​Valid:​ Cached​URLResponse)

Sent to indicate to the URL loading system that a cached response is valid.

func url​Protocol(URLProtocol, did​Cancel:​ URLAuthentication​Challenge)

Sent to indicate to the URL loading system that an authentication challenge has been canceled.

func url​Protocol(URLProtocol, did​Fail​With​Error:​ Error)

Sent when the load request fails due to an error.

func url​Protocol(URLProtocol, did​Load:​ Data)

An NSURLProtocol subclass instance, protocol, sends this message to [protocol client] as it loads data.

func url​Protocol(URLProtocol, did​Receive:​ URLAuthentication​Challenge)

Sent to indicate to the URL loading system that an authentication challenge has been received.

func url​Protocol(URLProtocol, did​Receive:​ URLResponse, cache​Storage​Policy:​ URLCache.Storage​Policy)

Sent to indicate to the URL loading system that the protocol implementation has created a response object for the request.

func url​Protocol(URLProtocol, was​Redirected​To:​ URLRequest, redirect​Response:​ URLResponse)

Sent to indicate to the URL loading system that the protocol implementation has been redirected.

func url​Protocol​Did​Finish​Loading(URLProtocol)

Sent to indicate to the URL loading system that the protocol implementation has finished loading.

Relationships

Inherits From