requestWithURL:usingCache: method

Creates a Request object with the specified HTTP or HTTPS URL and cache.

Syntax

+ ( id ) requestWithURL : ( NSURL * ) newURL usingCache : ( id< CacheDelegate > ) cache

Parameters

Returns

instance of the Request class.
 Request *request = [Request requestWithURL:[[NSURL alloc] initWithString:applicationEndpoint] usingCache:self];