{"id":17771948,"url":"https://github.com/probablycorey/seriously","last_synced_at":"2025-10-11T21:10:44.857Z","repository":{"id":55565276,"uuid":"745626","full_name":"probablycorey/seriously","owner":"probablycorey","description":"The Objective-C HTTP library that Apple should have created, seriously.","archived":false,"fork":false,"pushed_at":"2020-12-21T20:05:07.000Z","size":103,"stargazers_count":432,"open_issues_count":1,"forks_count":30,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-31T16:33:19.001Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/probablycorey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-06-28T21:58:13.000Z","updated_at":"2025-08-28T12:52:26.000Z","dependencies_parsed_at":"2022-08-15T03:20:17.569Z","dependency_job_id":null,"html_url":"https://github.com/probablycorey/seriously","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/probablycorey/seriously","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablycorey%2Fseriously","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablycorey%2Fseriously/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablycorey%2Fseriously/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablycorey%2Fseriously/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/probablycorey","download_url":"https://codeload.github.com/probablycorey/seriously/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablycorey%2Fseriously/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008731,"owners_count":26084494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-26T21:37:28.008Z","updated_at":"2025-10-11T21:10:44.843Z","avatar_url":"https://github.com/probablycorey.png","language":"C","readme":"Seriously\n---------\nThe iPhone needs a better way to make HTTP requests, specifically calls to \nREST web services. Seriously mixes Blocks with NSURLConnection \u0026 \nNSOperationQueue to do just that. It also will automatically parse the JSON \nresponse into a dictionary if the response headers are set correctly.\n\nInstall\n-------\nJust drag the files from the \"src\" directory into your project. You can also try\nusing the included \"Seriously.framework\" file\n\nParse JSON EXAMPLE\n------------------\n    NSString *url = @\"http://api.twitter.com/1/users/show.json?screen_name=probablycorey\";\n\n    [Seriously get:url handler:^(id body, NSHTTPURLResponse *response, NSError *error) {\n        if (error) {\n            NSLog(@\"Error: %@\", error);\n        }\n        else {\n            NSLog(@\"Look, JSON is parsed into a dictionary!\");\n            NSLog(@\"%@\", [body objectForKey:@\"profile_background_image_url\"]);\n        }\n    }];\n\nSimple Queue Example \n--------------------\n    NSArray *urls = [NSArray arrayWithObjects:\n                     @\"http://farm5.static.flickr.com/4138/4744205956_1f08ae40e3_o.jpg\",\n                     @\"http://farm5.static.flickr.com/4123/4744238252_d11d0df5a3_b.jpg\",\n                     @\"http://farm5.static.flickr.com/4097/4743596319_50cce97d80_o.jpg\",\n                     @\"http://farm5.static.flickr.com/4099/4743581287_7c50529b36_o.jpg\",\n                     @\"http://farm5.static.flickr.com/4123/4743587437_78f0906e8a_o.jpg\",\n                     @\"http://farm5.static.flickr.com/4136/4743562971_d5f5c6d5b1_o.jpg\",\n                     @\"http://farm5.static.flickr.com/4073/4744205142_be44e64ab7_o.jpg\",\n                     nil];\n\n    // By default the NSOperation will only do 3 requests at a time\n    for (NSString *url in urls) {\n        NSOperation *o = [Seriously request:url options:nil handler:^(id body,\n        NSHTTPURLResponse *response, NSError *error) {            \n            NSLog(@\"got %d (%@)\", [urls indexOfObject:url], url);\n        }];\n    }\n \nWhy Are You Using Blocks?\n-------------------------\nWelcome to the future dude!\n \nTODO\n----\n- Document\n- Add XML parsing\n- Add more options for NSOperationQueue management\n\nCurrently Maintained By:\n------------------------\n[@adamvduke](https://github.com/adamvduke)\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobablycorey%2Fseriously","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobablycorey%2Fseriously","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobablycorey%2Fseriously/lists"}