<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/URLSessionTaskMetrics/ResourceFetchType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSURLSessionTaskMetricsResourceFetchType"
  },
  "title" : "URLSessionTaskMetrics.ResourceFetchType"
}
-->

# URLSessionTaskMetrics.ResourceFetchType

The manner in which a resource is fetched.

```
enum ResourceFetchType
```

## Topics

### Fetch types

[`URLSessionTaskMetrics.ResourceFetchType.unknown`](/documentation/Foundation/URLSessionTaskMetrics/ResourceFetchType/unknown)

The manner in which the resource was fetched could not be determined.

[`URLSessionTaskMetrics.ResourceFetchType.networkLoad`](/documentation/Foundation/URLSessionTaskMetrics/ResourceFetchType/networkLoad)

The resource was loaded over the network.

[`URLSessionTaskMetrics.ResourceFetchType.serverPush`](/documentation/Foundation/URLSessionTaskMetrics/ResourceFetchType/serverPush)

The resource was pushed by the server to the client.

[`URLSessionTaskMetrics.ResourceFetchType.localCache`](/documentation/Foundation/URLSessionTaskMetrics/ResourceFetchType/localCache)

The resource was retrieved from the local storage.



---

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)