Instance Method

urlProtocol(_:didLoad:)

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

Required.

Declaration

func urlProtocol(_ protocol: URLProtocol, didLoad data: Data)

Parameters

protocol

The URL protocol object sending the message.

data

The data being made available.

Discussion

The data object must contain only new data loaded since the previous invocation of this method.

See Also

Indicating Loading Progress or Failure

func urlProtocol(URLProtocol, didFailWithError: Error)

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

Required.

func urlProtocolDidFinishLoading(URLProtocol)

Tells the client that the protocol implementation has finished loading.

Required.