daivepan Goto Github PK
Name: DaivePan
Type: User
Name: DaivePan
Type: User
A delightful networking framework for iOS, macOS, watchOS, and tvOS.
# CommonNetwork 基于AFNetworking通用网络封装库 ## CommonNetworkCommand 网络请求封装 可以指定请求的url 参数 以及请求方法,使用方继承该类,自定义自己的网络请求。 ## CommonNetworkClient 给命令统一注入agent&handler,完成命令的组装。配合handler可以实现参数异步注入,请求重试等功能。比如框架中实现了断网等待重试的功能,断网错误可以等网络恢复再重新请求。 ## CommonNetworkAgent 网络请求的实现者 每个command需要注入一个agent 方可使用 ## ICommonNetworkHandler 利用handler可以注入公用的http头部 以及公用url参数 还可以处理所有错误 ##Demo ``` CommonNetworkClient *client = [[CommonNetworkClient alloc] initWithAgent:[CommonNetworkAgent agent] handler:[CommonNetworkHandlerPool sharedInstance] maxWaitingTime:30]; CommonNetworkErrorHandler *networkErrorHandler = [[CommonNetworkErrorHandler alloc] init]; [[CommonNetworkHandlerPool sharedInstance] addHandler:handler]; [[CommonNetworkHandlerPool sharedInstance] addHandler:networkErrorHandler]; //创建command 实际调用时改成具体的命令 CommonNetWorkCommand = [CommonNetworkCommand new]; [command setSuccessBlock:successBlock failureBlock:failureBlock]; [client startCommand:command];
Android开源弹幕引擎·烈焰弹幕使 ~
iOS的一些示例,持续更新中:1、AVFoundation 高仿微信相机拍摄和编辑 2、AVFoundation 人脸检测、实时滤镜、音视频编解码、GPUImage框架的使用等音视频相关内容 3、OpenGLES 4、LeetCode算法练习 5、iOS Crash防护和APM监控 6、WKWebView相关的内容 等........
Reactive Programming in Swift
SDWebImage、AFNetworking、WebViewJavascriptCore、YYModel源码解析
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.