Latest 0.1.1
Homepage https://github.com/KevinChouRafael/ShrimpHttp
License MIT
Platforms ios 8.0
Authors

[![CI Status](http://img.shields.io/travis/rafael zhou/ShrimpHttp.svg?style=flat)](https://travis-ci.org/rafael zhou/ShrimpHttp)
Version
License
Platform

ShrimpHttp is an simplify HTTP networking library written in Swift.

Features

  • [x] Chainable Request / Response Methods
  • [x] Parameter Encoding
  • [x] GET / POST / PUT / DELETE
  • [ ] Builtin JSON Request Serialization
  • [ ] NSOperationQueue Support
  • [ ] Download File using Request or Resume Data
  • [ ] Upload/Download with Progress Closure

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

GET

        ShrimpRequest().request(.GET, urlString: "https://httpbin.org/get")
        .responseString ({ (string, response) in
            debugPrint("GET: (string)")
        })

POST


        ShrimpRequest().request(.POST, urlString: "http://www.mocky.io/v2/56c5b7a80f0000d027a204e2", parameters: ["username":"rafael",
            "password":"123456"])
        .responseJSONObject({ (json, response) in
                debugPrint(json["first_name"])
                debugPrint(json["last_name"])
                debugPrint(json["gender"])            
            }, errorHandler: { (error) in

        })

Requirements

  • iOS 8.0+
  • Xcode 7.3
  • Swift 2.2

Installation

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

pod "ShrimpHttp"

Author

rafael zhou, [email protected]

License

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

Latest podspec

{
    "name": "ShrimpHttp",
    "version": "0.1.1",
    "summary": "ShrimpHttp is an simplify HTTP networking library.",
    "description": "ShrimpHttp is an simplify HTTP networking library written in Swift.",
    "homepage": "https://github.com/KevinChouRafael/ShrimpHttp",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "rafael zhou": "[email protected]"
    },
    "source": {
        "git": "https://github.com/KevinChouRafael/ShrimpHttp.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ShrimpHttp/Classes/**/*"
}

Pin It on Pinterest

Share This