<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSURLRequest/Attribution-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSURLRequestAttribution"
  },
  "title" : "NSURLRequest.Attribution"
}
-->

# NSURLRequest.Attribution

The entities that can make a network request.

```
enum Attribution
```

## Overview

Use one of these values when setting the [`attribution`](/documentation/Foundation/URLRequest/attribution-swift.property) parameter of a [`URLRequest`](/documentation/Foundation/URLRequest). If you don’t set a value, the system assumes [`NSURLRequest.Attribution.developer`](/documentation/Foundation/NSURLRequest/Attribution-swift.enum/developer).

## Topics

### Request sources

[`case developer`](/documentation/Foundation/NSURLRequest/Attribution-swift.enum/developer)

A developer-initiated network request.

[`case user`](/documentation/Foundation/NSURLRequest/Attribution-swift.enum/user)

The user explicitly directs the app to make a network request.

### Initializers

[`init?(rawValue: UInt)`](/documentation/Foundation/NSURLRequest/Attribution-swift.enum/init(rawValue:))

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)