by probablycorey

probablycorey /seriously

The Objective-C HTTP library that Apple should have created, seriously.

445 Stars 34 Forks Last release: Not found Other 65 Commits 3 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


The iPhone needs a better way to make HTTP requests, specifically calls to REST web services. Seriously mixes Blocks with NSURLConnection & NSOperationQueue to do just that. It also will automatically parse the JSON response into a dictionary if the response headers are set correctly.


Just drag the files from the "src" directory into your project. You can also try using the included "Seriously.framework" file


NSString *url = @"";

[Seriously get:url handler:^(id body, NSHTTPURLResponse *response, NSError *error) { if (error) { NSLog(@"Error: %@", error); } else { NSLog(@"Look, JSON is parsed into a dictionary!"); NSLog(@"%@", [body objectForKey:@"profile_background_image_url"]); } }];

Simple Queue Example

NSArray *urls = [NSArray arrayWithObjects:

// By default the NSOperation will only do 3 requests at a time for (NSString *url in urls) { NSOperation *o = [Seriously request:url options:nil handler:^(id body, NSHTTPURLResponse *response, NSError *error) {
NSLog(@"got %d (%@)", [urls indexOfObject:url], url); }]; }

Why Are You Using Blocks?

Welcome to the future dude!


  • Document
  • Add XML parsing
  • Add more options for NSOperationQueue management

Currently Maintained By:


We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.