VenturousNetworking
Example
Example of requesting POST HTTP request that returning model object
VenturousNetworking.modelRequest(URL: url, Parameters: PARMETER_MODEL, Headers: AS[String: Any], HTTPMethod: .post) { (result: Result<TARGETED_MODEL>) in
switch result {
case .success(let model):
return
case .failure(let error):
return
}
}
Requirements
iOS 11.0 or higher
Swift 4.2 or higher
Installation
VenturousNetworking is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'VenturousNetworking'Author
ramysabry22, [email protected]
License
VenturousNetworking is available under the MIT license. See the LICENSE file for more info.