MonobjcMonobjc Documented Class Library
NSURLProtocol Constructor (request, cachedResponse, client)
NamespacesMonobjc.FoundationNSURLProtocolNSURLProtocol(NSURLRequest, NSCachedURLResponse, INSURLProtocolClient)

Initializes an NSURLProtocol object.

Original signature is '- (id)initWithRequest:(NSURLRequest *)request cachedResponse:(NSCachedURLResponse *)cachedResponse client:(id < NSURLProtocolClient >)client'

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

Declaration Syntax
C#Visual BasicVisual C++
public NSURLProtocol(
	NSURLRequest request,
	NSCachedURLResponse cachedResponse,
	INSURLProtocolClient client
)
Public Sub New ( _
	request As NSURLRequest, _
	cachedResponse As NSCachedURLResponse, _
	client As INSURLProtocolClient _
)
public:
NSURLProtocol(
	NSURLRequest^ request, 
	NSCachedURLResponse^ cachedResponse, 
	INSURLProtocolClient^ client
)
Parameters
request (NSURLRequest)
The URL request for the URL protocol object.
cachedResponse (NSCachedURLResponse)
A cached response for the request; may be nil if there is no existing cached response for the request.
client (INSURLProtocolClient)
An object that provides an implementation of the NSURLProtocolClient protocol that the receiver uses to communicate with the URL loading system.
Return Value
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)