You can find
RSNetworking2
on GitHub with https://github.com/hoffmanjon/RSNetworking2
The RSNetworking2
library is a network library written entirely in the Swift programming language. RSNetworking2
is built using Apple's powerful URL loading system (https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html), which features the NSURLSession
class that we used earlier in this chapter. The main design goal of RSNetworking2
is to make it easy and quick for developers to add powerful asynchronous networking requests to their applications that are written in Swift.
There are the three ways in which we can use RSNetworking2
:
RSURLRequest
: This API provides a very simple and easy interface to make single GET requests to a service.RSTransaction
andRSTransactionRequest
: These APIs provide a very powerful and flexible way to make both GET and POST requests to a service. This API also makes it very easy to make multiple...