Latest 0.0.7
Homepage https://github.com/BurritoKit/TacoShell
License MIT
Platforms ios 6.0, osx 10.7, requires ARC
Authors

TacoShell

CI Status
Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first. For futher documentation, please visit the CocoaDocs Page.

Using TacoShell a GET request is simple as this:

TacoShell *ts = [[TacoShell alloc] initWithURL:[NSURL URLWithString:@"http://guacamole.burritokit.com/"]];
ts.completionBlock = ^(NSDictionary *dictionary, NSInteger httpResponseStatusCode, id response){
    NSLog(@"Your IP Address is: %@", response[@"meta"][@"ip"]);
};
[ts start];

That’s it! TacoShell automatically deserialized JSON responses if the respective Content-Type contains application/json.

To perform a POST request using multipart/form-data just pass in the desired fields into the POSTDictionary:

...
ts.method = BKTSRequestMethodPOST;
ts.POSTDictionary = @{"username": "karl"};
...

When no Content-Type is specified, and the POSTDictionary is set, the Content-Type will default to multipart/form-data.

If you’d like to POST the POSTDictionary as JSON in the Body then just set the Content-Type to BKTSRequestContentTypeApplicationJSON like so:

...
ts.contentType = BKTSRequestContentTypeApplicationJSON;
...

Easy, isn’t it?

Requirements

  • CocoaPods

Installation

TacoShell is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "TacoShell"

Author

Marcus Kida, [email protected]

License

TacoShell is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TacoShell",
    "version": "0.0.7",
    "summary": "TacoShell is a super leight-weight Cocoa wrapper for NSURLConnection",
    "homepage": "https://github.com/BurritoKit/TacoShell",
    "license": "MIT",
    "authors": {
        "Marcus Kida": "[email protected]"
    },
    "source": {
        "git": "https://github.com/BurritoKit/TacoShell.git",
        "tag": "0.0.7"
    },
    "social_media_url": "https://twitter.com/kidmar",
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "platforms": {
        "ios": "6.0",
        "osx": "10.7"
    }
}

Pin It on Pinterest

Share This