Instance Method

urlProtocol(_:didFailWithError:)

Tells the client that the load request failed due to an error.

Required.

Declaration

func urlProtocol(_ protocol: URLProtocol, didFailWithError error: Error)

Parameters

protocol

The URL protocol object sending the message.

error

The error that caused the failure of the load request.

See Also

Indicating Loading Progress or Failure

func urlProtocol(URLProtocol, didLoad: Data)

Tells the client that the protocol implementation has loaded some data.

Required.

func urlProtocolDidFinishLoading(URLProtocol)

Tells the client that the protocol implementation has finished loading.

Required.