This template is designed to simplify and speed up the process of creating and processing REST API requests and responses with JSON body. Based on automatic generationof instances of types supporting Codable protocol
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS 10.0
Swift 5.0
NKNetworker is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'NKNetworker'
- Fixed issue, when on requests with empty body (
body = nil
) Data-object (JSON) initialized as 4 bytes
- Fixed issue with undecoded symbols in URL string
- Fixed request/response log print
- Removed default header
Content-Type: application/json; charset=utf-8
- Fixed issue with path parameter's separator
NKNRequestFetcher.errorHandler
used to handleNKNStaticError
in default cases
NKNRequestFetcher.body
available custom encoding
nkopilovskii, nkopilovskii@gmail.com
NKNetworker is available under the MIT license. See the LICENSE file for more info.