YTKNetwork is a high level request util based on AFNetworking. It’s developed by the iOS Team of YuanTiKu. It provides a High Level API for network request.
YTKNetwork is used in all products of YuanTiKu, including: YuanTiKu, YuanSoTi, YuanFuDao, FenBiZhiBoKe.
Features:
- Response can be cached by expiration time
- Response can be cached by version number
- Set common base URL and CDN URL
- Validate JSON response
- Resume download
- block and delegate callback
- Batch requests (see YTKBatchRequest)
- Chain requests (see YTKChainRequest)
- URL filter, replace part of URL, or append common parameter
- Plugin mechanism, handle request start and finish. A plugin for show “Loading” HUD is provided

Leave a Reply
You must be logged in to post a comment.