MonobjcMonobjc Documented Class Library
ConnectionWillCacheResponseMessage Method (connection, cachedResponse)
NamespacesMonobjc.FoundationNSURLConnection..::..NSURLConnectionDelegateEventDispatcherConnectionWillCacheResponseMessage(NSURLConnection, NSCachedURLResponse)

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
C#Visual BasicVisual C++
public NSCachedURLResponse ConnectionWillCacheResponseMessage(
	NSURLConnection connection,
	NSCachedURLResponse cachedResponse
)
Public Function ConnectionWillCacheResponseMessage ( _
	connection As NSURLConnection, _
	cachedResponse As NSCachedURLResponse _
) As NSCachedURLResponse
public:
NSCachedURLResponse^ ConnectionWillCacheResponseMessage(
	NSURLConnection^ connection, 
	NSCachedURLResponse^ cachedResponse
)
Parameters
connection (NSURLConnection)
The connection sending the message.
cachedResponse (NSCachedURLResponse)
The proposed cached response to store in the cache.
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)