MonobjcMonobjc Documented Class Library
NSURLConnection..::..ConnectionWillSendRequestRedirectResponseEventHandler Delegate
NamespacesMonobjc.FoundationNSURLConnectionNSURLConnection..::..ConnectionWillSendRequestRedirectResponseEventHandler

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

Original signature is '- (NSURLRequest *)connection:(NSURLConnection *)connection 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 ConnectionWillSendRequestRedirectResponseEventHandler(
	NSURLConnection connection,
	NSURLRequest request,
	NSURLResponse redirectResponse
)
Public Delegate Function ConnectionWillSendRequestRedirectResponseEventHandler ( _
	connection As NSURLConnection, _
	request As NSURLRequest, _
	redirectResponse As NSURLResponse _
) As NSURLRequest
public delegate NSURLRequest^ ConnectionWillSendRequestRedirectResponseEventHandler(
	NSURLConnection^ connection, 
	NSURLRequest^ request, 
	NSURLResponse^ redirectResponse
)
Parameters
connection (NSURLConnection)
The connection 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 return request unmodified to allow the redirect, return a new request, or return nil to reject the redirect and continue processing 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)