attribution
The entity that initiates the network request.
Declaration
var attribution: NSURLRequest.Attribution { get set }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.
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.