Giter Club home page Giter Club logo

httpriot's Introduction

#HTTPRiot - Easily Consume REST Services

HTTPRiot is a simple HTTP library that works on the iPhone and Cocoa Apps. It tries to abstract as much as possible in the beginning. This means you don't spend a lot of time up front setting things up and staying on a golden path, but this also means it makes no assumptions about the data returned. It will convert JSON and XML automatically to NSDictionary or NSArray objects, allowing you to do what you want to with the data, but it's up to you to create your own models if you wish.

It offers a lot of flexibility with the data returned, but the tradeoff is that you must know what to do with the data returned because if you initiate two requests from one model both will be routed through the same delegate methods that handle responses/errors/etc.

Documentation and Samples:

Quick Examples

// GET
[model getPath:@"/foo/bar.json" withOptions:nil object:nil];

// POST
NSDictionary *opts = [NSDictionary dictionaryWithObject:[obj JSONRepresentation] forKey:@"body"];
[model postPath:@"/foo" withOptions:params object:nil];

// PUT
NSDictionary *opts = [NSDictionary dictionaryWithObject:[obj JSONRepresentation] forKey:@"body"];
[model putPath:@"/foo/1" withOptions:params object:nil];

// DELETE
[model deletePath:@"/foo/1" withOptions:nil object:nil];

##Similar Projects HTTPRiot was inspired by the httparty Ruby library. There are also numerous other HTTP libraries for Cocoa:

httpriot's People

Contributors

caged avatar lukeredpath avatar keithpitt avatar ognen avatar mschrag avatar

Watchers

Jim Chang avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.