MonobjcMonobjc Documented Class Library
ConnectionWillCacheResponse Event
NamespacesMonobjc.FoundationNSURLConnection..::..NSURLConnectionDelegateEventDispatcherConnectionWillCacheResponse

Sent before the connection stores a cached response in the cache, to give the delegate an opportunity to alter it.

Original signature is '- (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse'

Available in Mac OS X v10.2 with Safari 1.0 installed and later.

Declaration Syntax
Return Value
The actual cached response to store in the cache. The delegate may return cachedResponse unmodified, return a modified cached response, or return nil if no cached response should be stored for the connection.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)