Instance Property インスタンスプロパティ

attribution

The entity that initiates the network request. ネットワークリクエストに着手する実在。

Declaration 宣言

var attribution: NSURLRequest.Attribution { get }

Discussion 議論

If you don’t set this value, the system assumes a value of NSURLRequest.Attribution.developer. Use this default value for any network request that your app makes that isn’t explicitly from the user. This includes requests that you make to your own server, even when you load user data. It also includes links that the user selects, but that you modify in any way — including by adding HTTP headers — before loading the content. この省略時の値を、あなたのアプリが作る、ユーザから明示的にではない、あらゆるネットワークリクエストに対して使ってください。これは、あなたがあなた自身のサーバーに対してするリクエストを含みます、たとえあなたがユーザデータをロードする時でさえ。それはまたリンクを含みます、それはユーザが選択する、しかしそれはあなたが何らかの方法で — HTTPヘッダの追加によってを含めて — 修正をするものです、その内容をロードする前に。

Set this value to NSURLRequest.Attribution.user only for requests that the user explicitly makes, like when the user enters a URL or taps or clicks a URL that they can read, and only if your app loads and displays the data without altering the request.

See Also 参照

Indicating the Source of the Request リスエストのソースを指し示す