Enumeration

URLSessionTaskMetrics.ResourceFetchType

The manner in which a resource is fetched.

Declaration

enum ResourceFetchType : Int

Topics

Fetch Types

case unknown

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

case networkLoad

The resource was loaded over the network.

case serverPush

The resource was pushed by the server to the client.

case localCache

The resource was retrieved from the local storage.

See Also

Accessing Transaction Characteristics

var networkProtocolName: String?

The network protocol used to fetch the resource.

var isProxyConnection: Bool

A Boolean value indicating whether a proxy connection was used to fetch the resource.

var isReusedConnection: Bool

A Boolean value indicating whether a persistent connection was used to fetch the resource.

var resourceFetchType: URLSessionTaskMetrics.ResourceFetchType

A value indicating whether the resource was loaded, pushed, or retrieved from the local cache.