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.