Latest 0.1.0
Homepage https://github.com/zhxnlai/AlamofireAsync
License MIT
Platforms ios 8.0, requires ARC
Dependencies Alamofire, SwiftAsync
Authors

Async extension for Alamofire

Usage

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

import Alamofire
import AlamofireAsync
import SwiftAsync

async {
    let request = Alamofire.request(.GET, "https://httpbin.org/get")
    let response = await { request.responseJSONAsync() }

    print(response.request)  // original URL request
    print(response.response) // URL response
    print(response.data)     // server data
    print(response.result)   // result of response serialization

    if let JSON = response.result.value {
        print("JSON: (JSON)")
    }
} () {}

Installation

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

pod "AlamofireAsync"

Author

Zhixuan Lai, [email protected]

License

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

Latest podspec

{
    "name": "AlamofireAsync",
    "version": "0.1.0",
    "summary": "Async extension for Alamofire.",
    "homepage": "https://github.com/zhxnlai/AlamofireAsync",
    "license": "MIT",
    "authors": {
        "Zhixuan Lai": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zhxnlai/AlamofireAsync.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "AlamofireAsync": [
            "Pod/Assets/*.png"
        ]
    },
    "dependencies": {
        "Alamofire": [
            "~> 3.0"
        ],
        "SwiftAsync": []
    }
}

Pin It on Pinterest

Share This