Instance Method インスタンスメソッド

urlProtocol(_:wasRedirectedTo:redirectResponse:)

Tells the client that the protocol implementation has been redirected. クライアントに、このプロトコル実装が転送されたことを伝えます。

Declaration 宣言

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

Parameters パラメータ

protocol

The URL protocol object sending the message. メッセージを送っているURLプロトコルオブジェクト。

request

The new request that the original request was redirected to. 元のリクエストがそれへと転送された新しいリクエスト。

redirectResponse

The response from the original request that caused the redirect. 元のリクエストからの応答、それは転送を引き起こしたものです。