Contents

storeCachedResponse(_:for:)

Stores a cached URL response for a specified request.

Declaration

func storeCachedResponse(_ cachedResponse: CachedURLResponse, for request: URLRequest)

Parameters

  • cachedResponse:

    The cached URL response to store.

  • request:

    The request for which the cached URL response is being stored.

Mentioned in

Discussion

If you override this method, you should also override storeCachedResponse(_:for:).

See Also

Getting and storing cached objects