Creates a Request object with the specified HTTP or HTTPS URL and cache.
Syntax
+
(
id
)
requestWithURL
:
(
NSURL *
)
newURL
usingCache
:
(
id< CacheDelegate >
)
cache
Parameters
-
newURL –
object of NSURL class.
-
cache –
object implementing CacheDelegate protocol.
Returns
instance of the Request class.
Request *request = [Request requestWithURL:[[NSURL alloc] initWithString:applicationEndpoint] usingCache:self];