MonobjcMonobjc Documented Class Library
NSURLDownload..::..DownloadWillSendRequestRedirectResponseEventHandler Delegate
NamespacesMonobjc.FoundationNSURLDownloadNSURLDownload..::..DownloadWillSendRequestRedirectResponseEventHandler

Sent when the download object determines that it must change URLs in order to continue loading a request.

Original signature is '- (NSURLRequest *)download:(NSURLDownload *)download willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse'

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

Declaration Syntax
C#Visual BasicVisual C++
public delegate NSURLRequest DownloadWillSendRequestRedirectResponseEventHandler(
	NSURLDownload download,
	NSURLRequest request,
	NSURLResponse redirectResponse
)
Public Delegate Function DownloadWillSendRequestRedirectResponseEventHandler ( _
	download As NSURLDownload, _
	request As NSURLRequest, _
	redirectResponse As NSURLResponse _
) As NSURLRequest
public delegate NSURLRequest^ DownloadWillSendRequestRedirectResponseEventHandler(
	NSURLDownload^ download, 
	NSURLRequest^ request, 
	NSURLResponse^ redirectResponse
)
Parameters
download (NSURLDownload)
The URL download object sending the message.
request (NSURLRequest)
The proposed redirected request. The delegate should inspect the redirected request to verify that it meets its needs, and create a copy with new attributes to return to the connection if necessary.
redirectResponse (NSURLResponse)
The URL response that caused the redirect. May be nil in cases where this method is not being sent as a result of involving the delegate in redirect processing.
Return Value
The actual URL request to use in light of the redirection response. The delegate may copy and modify request as necessary to change its attributes, return request unmodified, or return nil.
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)