Skip to content

vamitrou/HTTPCachedController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

HTTPCachedController

A proxy for caching web API responses.

The HTTPCachedController is a proxy that stores fetched data into device's cache.

If the same request is done at some time that no network connection is available, the cached data will be returned.

The whole procedure is very transparent to the developer, and handles the data in the same way as either he is online or offline.

Example usage:

HTTPCachedController *ctrl = [[[HTTPCachedController alloc] initWithRequestType:1 andDelegate:self] autorelease];
[ctrl getRequestToURL:@"https://api.github.com/orgs/twitter/repos?page=1&per_page=10"];

and the completion listener implements the HTTPCachedControllerDelegate's:

connectionFinishedWithData:(NSString*)data andRequestType:(int)reqType

About

A proxy for caching web API responses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published