Last month I mentioned a library providng a neat Swift library wrapping much of NSURLSession’s features called SwiftHTTP.
Here’s an open source library from AFNetworking project founder Mattt Thompson providing a more extensive networking written in Swift called Alamofire.
As Mattt states in the readme:
Alamofire is an HTTP networking library written in Swift. Think of it as AFNetworking, reimagined for the conventions of this new language.
The features as stated in the readme include:
– Chainable Request / Response methods
– URL / JSON / plist Parameter Encoding
– Upload File / Data / Stream
– Download using Request or Resume data
– Authentication with NSURLCredential
– Progress Closure & NSProgress
– cURL Debug Output
This example from the readme shows the alamoFire syntax on creating a GET request with response string handling:
.responseString { (request, response, string, error) in
println(string)
}
You can find AlamoFire on Github here.
A great Swift based networking library.
- Extensive Swift Utility Library Inspired By Python’s Standard Library
- An Extensive Open Source iOS Library For Working With The Twitter API Written In Swift
- An Open Source Swift Math Library Inspired By Python’s NumPy
- Open Source Functional Programming Toolbelt For Swift Inspired By The Underscore.js Library
- Tool: A Command Line Documentation Generator For Swift
Original article: Extensive Open Source Swift Based Networking Library
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.




