One Logo Pool Ball
Foundation · IOS API REFERENCE

CachedURLResponse

class · iOS 2.0+ · SDK 27.1

class CachedURLResponse

Members (6)

init · iOS 2.0+

init

TypeScript
static initResponseData(response: URLResponse, data: ArrayBuffer): CachedURLResponse
Swift declaration
init(response: URLResponse, data: Data)
init · iOS 2.0+

init

TypeScript
static initResponseDataUserInfoStoragePolicy(response: URLResponse, data: ArrayBuffer, userInfo: (NativeMap<unknown, unknown>) | null, storagePolicy: URLCache_StoragePolicy): CachedURLResponse
Swift declaration
init(response: URLResponse, data: Data, userInfo: [AnyHashable : Any]? = nil, storagePolicy: URLCache.StoragePolicy)
get · iOS 2.0+

data

TypeScript
get data(): ArrayBuffer
Swift declaration
var data: Data { get }
get · iOS 2.0+

response

TypeScript
get response(): URLResponse
Swift declaration
@NSCopying var response: URLResponse { get }
get · iOS 2.0+

storagePolicy

TypeScript
get storagePolicy(): URLCache_StoragePolicy
Swift declaration
var storagePolicy: URLCache.StoragePolicy { get }
get · iOS 2.0+

userInfo

TypeScript
get userInfo(): (NativeMap<unknown, unknown>) | null
Swift declaration
var userInfo: [AnyHashable : Any]? { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

CachedURLResponse.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All Foundation types →