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

storeCookies(_:for:)

Stores an array of cookies in the cookie storage, on behalf of the provided task, if the cookie accept policy permits. クッキーの配列をクッキーストレージの中に貯蔵します、提供されたタスクの代理で、もしクッキー受入方針が許可するならば。

Declaration 宣言

func storeCookies(_ cookies: [HTTPCookie], 
              for task: URLSessionTask)

Parameters パラメータ

cookies

The cookies to add. このクッキーを加えます。

task

The task that handles the response. Override this method and inspect this parameter if you need to alter your cookie storage strategy based on properties of the task. このタスクが応答を取り扱います。このメソッドをオーバーライドしてそしてこのパラメータを調査してください、もしあなたのクッキーストレージ戦略をそのタスクのプロパティに基づいて改める必要があなたにあるならば。

See Also 参照

Adding and Removing Cookies クッキーの追加と除去