requestWithURL:usingCache:andCachePolicy: method

Factory method which returns a request object created using url, cache and a cache policy.

Syntax

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

Parameters

Example 1

[RequestBuilder setRequestType:HTTPRequestType];
id<Requesting> request = [RequestBuilder requestWithURL:[[NSURL alloc] initWithString:applicationEndpoint] usingCache:self andCachePolicy:Default_CachePolicy];