casatwy / CTNetworking

iOS networking API layer
Other
488 stars 104 forks source link

这个项目跟原来的 RTNetworking 有什么不同吗 #3

Closed ShannonChenCHN closed 6 years ago

ShannonChenCHN commented 6 years ago

很好奇为什么不是直接在原来 RTNetworking 的基础上进行迭代,而是新开了个 repo?是因为改动会比较大的原因吗?

casatwy commented 6 years ago

主要的API调度机制没变,其它改变了CTAppContext的获取方式和CTService的机制。

现在的CTNetworking是这几年对RTNerworking的调整。

发自我的 iPhone

在 2018年3月1日,16:22,ShannonChen notifications@github.com<mailto:notifications@github.com> 写道:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/casatwy/CTNetworking/issues/3, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA9Y1doJ4fw-rTyazBzf82FvWxD7Mu0Mks5tZ6_IgaJpZM4SX64O.

ShannonChenCHN commented 6 years ago

一直没搞明白 CTAppContext 的作用是什么😂

原来的 RTNetworking 中好像没有实现缓存机制,还有就是如果能添加一个像 YTKNetwork 中的 YTKRequestAccessory 那样能显示 toast 的插件就好了。

casatwy commented 6 years ago

现在的CTNetworking支持缓存了

ctappcontext的作用主要是指导CTNetworking行为的

弹toast不是一个网络库该做的事情,但我提供了intercept,可以在那里面自定义弹toast

发自我的 iPhone

在 2018年3月1日,16:30,ShannonChen notifications@github.com<mailto:notifications@github.com> 写道:

一直没搞明白 CTAppContext 的作用是什么😂

原来的 RTNetworking 中好像没有实现缓存机制,还有就是如果能添加一个像 YTKNetwork 中的 [YTKRequestAccessory](@protocolhttps://github.com/protocol YTKRequestAccessory ) 那样能显示 toast 的插件就好了。

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/casatwy/CTNetworking/issues/3#issuecomment-369514207, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA9Y1ePPYdIjCzLsU7ZhWWbliguCceKrks5tZ7GvgaJpZM4SX64O.