mirror of
https://github.com/Moya/Moya.git
synced 2026-03-18 19:52:28 +00:00
Update Vision_CN.md
This commit is contained in:
+12
-22
@@ -1,30 +1,20 @@
|
||||
## 项目目标
|
||||
|
||||
- 利于Swift 编译器来防止与配置网络请求相关的运行时错误 .
|
||||
- 为网络请求提供 Swift风格API/抽象.
|
||||
- 提供一个API,它可以非常容易来代理(stub)网络请求.
|
||||
- 提供一个基本的响应解析,同时也为其他库公开定制点来提供帮助.
|
||||
- 为API提供 (可选的) RxSwift / ReactiveSwift 扩展.
|
||||
- 通过为自定义行为提供周到且易于使用的扩展的点来避免有漏洞的抽象。
|
||||
- 赞同明确定义的行为胜过默认实现.
|
||||
- 通过相互尊重的讨论,培养一个包容性的开源社区.
|
||||
- 利用 Swift 编译器来避免与配置网络请求相关的运行时错误。
|
||||
- 为网络请求提供 Swift 风格的 API或抽象。
|
||||
- 提供一个 API,它可以非常容易来记录网络请求。
|
||||
- 提供一个 API,让常见需求更加容易被实现,也让不可能成为可能。
|
||||
- 提供基本的响应解析能力,同时也保留面向第三方库的可扩展性。
|
||||
- 为 API 提供 (可选的) `RxSwift/ReactiveSwift` 扩展。
|
||||
- 通过为自定义行为提供周到且易于使用的扩展能力来避免有漏洞的抽象。
|
||||
- 偏向明确定义的行为胜过默认实现。
|
||||
- 通过相互尊重的讨论,培养一个包容性的开源社区。
|
||||
|
||||
## 项目灵感
|
||||
|
||||
最初的想法来自于与 [Chris Eidhof][chris] 讨论如何利用 Swift编译器来把网络请求封装到Swift的 `enum`中, 且提供一个高层次的在编译时就能确认网络请求被配置无误。
|
||||
最初的想法来自于与 [Chris Eidhof](https://github.com/chriseidhof) 讨论如何利用 Swift 编译器来把网络请求封装到 Swift 的 `enum` 中,能确保在编译时就能确认网络请求是否被正确配置。
|
||||
|
||||
## Moya与 Artsy的关系
|
||||
## Moya 与 Artsy 的关系
|
||||
|
||||
Moya 起源于 [Eidolon][eidolon]项目, 这个项目是在2014年被 [Ash Furrow][ash]和 [Orta Therox][orta]开发的 ,那时是Swift 1.0 betas, 他们就职于[Artsy][artsy]. 这个项目很快被移到 Ash's GitHub的库中, 然后最终移到了 [Moya自己的 GitHub 组织][org]. Moya 由 [community of contributors][community]来运行, 并且一直在[MIT license][license]许可下发布的代码 .
|
||||
|
||||
|
||||
[eidolon]: https://github.com/artsy/eidolon
|
||||
[blog]: http://artsy.github.io/blog/2014/11/13/eidolon-retrospective/
|
||||
[ash]: https://github.com/ashfurrow
|
||||
[orta]: https://github.com/orta
|
||||
[chris]: https://github.com/chriseidhof
|
||||
[artsy]: https://artsy.net
|
||||
[org]: https://github.com/Moya
|
||||
[license]: https://github.com/Moya/Moya/blob/master/License.md
|
||||
[community]: https://github.com/Moya/contributors
|
||||
Moya 起源于 [Eidolon](https://github.com/artsy/eidolon) 项目,这个项目是在 2014 年由当时还就职于 [Artsy](https://artsy.net/) 的 [Ash Furrow](https://github.com/ashfurrow)和 [Orta Therox](https://github.com/orta) 开发的,那时 Swift 刚刚处于 1.0 的 beta 阶段。这个项目很快被移到 Ash 的 GitHub 中,然后最终移到了 [Moya自己的 GitHub 组织](https://github.com/Moya) 下。Moya 是由[社区的贡献者](https://github.com/Moya/contributors)来维护的,代码一直使用在[MIT许可](https://github.com/Moya/Moya/blob/master/License.md)下进行发布。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user