GithubHelp home page GithubHelp logo

network's Introduction

Network

CI Status Version License Platform

Todo List

☑️ 缓存机制 ☑️ 网络请求切片代理方法 ☑️ 封装高层级的Service,简化调用 按不同的数据处理方式分类: 1.无需关心返回值 2.只需要返回JSON数据 3.需要返回object 4.需要返回object array 5.可加载更多array

1.Keypath放在Requestable还是Responsable ? 2.返回对象类型放在Requestable还是Responsable ? 引出问题:如何界定请求和数据处理? 对于无需关心返回值的请求,keypath是可选的;而关心返回值得请求keypath则是必须的。

应该是都放在Responsable 当返回数据时,Requestable的职责应该已经结束 后续data如何处理,转成JSON如何处理,转成Model如何处理(keyPath + 模型类型),应该由Responsable协议决定。

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

Network is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Network'

Author

MooYoo, [email protected]

License

Network is available under the MIT license. See the LICENSE file for more info.

network's People

Contributors

slkai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.