Class

NSCached​URLResponse

An NSCached​URLResponse object represents a cached response to a URL request. It provides the server’s response metadata in the form of an NSURLResponse object, along with an NSData object containing the actual cached content data. Its storage policy determines whether the response should be cached on disk, in memory, or not at all.

Overview

Cached responses also contain a user info dictionary where you can store app-specific information about the cached item.

The NSURLCache class stores and retrieves instances of NSCached​URLResponse.

Symbols

Creating a cached URL response

- init​With​Response:​​data:​​

Initializes an NSCached​URLResponse object.

Getting cached URL response properties

data

The receiver’s cached data.

response

The URL response object associated with the receiver.

storage​Policy

The receiver’s cache storage policy.

user​Info

The receiver’s user info dictionary.

Constants

NSURLCache​Storage​Policy

These constants specify the caching strategy used by an NSCached​URLResponse object.

Relationships

Inherits From