SwiftNetwork is lightweight network layer in swift.
HTTPNetworkManagerCompletionBlock = (data:NSMutableData?, response:URLResponse?, error:NSError?) -> (Void)
SwiftNetwork.sharedInstance.get(<#T##urlSring: String##String#>, timeout: <#T##TimeInterval#>, completionBlock: <#T##HTTPNetworkManagerCompletionBlock##HTTPNetworkManagerCompletionBlock##(data: NSMutableData?, response: URLResponse?, error: NSError?) -> (Void)#>)
SwiftNetwork.sharedInstance.get(<#T##urlSring: String##String#>, headers: <#T##[String : String]#>, timeout: <#T##TimeInterval#>, completionBlock: <#T##HTTPNetworkManagerCompletionBlock##HTTPNetworkManagerCompletionBlock##(data: NSMutableData?, response: URLResponse?, error: NSError?) -> (Void)#>)
SwiftNetwork.sharedInstance.post(<#T##urlSring: String##String#>, body: <#T##Data#>, timeout: <#T##TimeInterval#>, completionBlock: <#T##HTTPNetworkManagerCompletionBlock##HTTPNetworkManagerCompletionBlock##(data: NSMutableData?, response: URLResponse?, error: NSError?) -> (Void)#>)
SwiftNetwork.sharedInstance.post(<#T##urlSring: String##String#>, body: <#T##Data#>, headers: <#T##[String : String]#>, timeout: <#T##TimeInterval#>, completionBlock: <#T##HTTPNetworkManagerCompletionBlock##HTTPNetworkManagerCompletionBlock##(data: NSMutableData?, response: URLResponse?, error: NSError?) -> (Void)#>)
SwiftNetwork is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SwiftNetwork'
SwiftNetwork is also available through Carthage. To install just write into your Cartfile:
github "ankitthakur/SwiftNetwork"
SwiftNetwork can also be installed manually. Just download and drop Sources
folders in your project.
Ankit Thakur, [email protected]
We would love you to contribute to SwiftNetwork, check the CONTRIBUTING file for more info.
SwiftNetwork is available under the MIT license. See the LICENSE file for more info.