requestWithURL:usingCache:andCachePolicy: method

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

Syntax

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

Parameters

Returns

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