Instance Method

urlProtocol(_:wasRedirectedTo:redirectResponse:)

Tells the client that the protocol implementation has been redirected.

Required.

Declaration

func urlProtocol(_ protocol: URLProtocol, wasRedirectedTo request: URLRequest, redirectResponse: URLResponse)

Parameters

protocol

The URL protocol object sending the message.

request

The new request that the original request was redirected to.

redirectResponse

The response from the original request that caused the redirect.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software