Skip to content

请教作者,该项目与retrofit对比的优势有哪些? #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Finn-xbotgo opened this issue Apr 23, 2025 · 3 comments
Open

请教作者,该项目与retrofit对比的优势有哪些? #257

Finn-xbotgo opened this issue Apr 23, 2025 · 3 comments
Labels
寻求帮助 Extra attention is needed

Comments

@Finn-xbotgo
Copy link

No description provided.

@Finn-xbotgo Finn-xbotgo added the 寻求帮助 Extra attention is needed label Apr 23, 2025
@luyu-code
Copy link

用完就知道了,挺好用的

@liangjingkanji
Copy link
Owner

liangjingkanji commented Apr 27, 2025

net和retrofit都属于二次封装okHttp

  1. net主要是新增/简化功能, 对协程支持更彻底, 文档更全面
  2. retrofit没添加任何功能, 只是基于接口规范化封装

如果你想快速开发那么推荐net
如果你想使用更广泛使用者并且认为自己完全有足够能力实现retrofit不支持的功能那你就选择retrofit

至于我自己属于没有net都不会写代码了, net属于国内开发环境下的经验积累开源库

@Finn-xbotgo
Copy link
Author

net和retrofit都属于二次封装okHttp

  1. net主要是新增/简化功能, 对协程支持更彻底, 文档更全面
  2. retrofit没添加任何功能, 只是基于接口规范化封装

如果你想快速开发那么推荐net 如果你想使用更广泛使用者并且认为自己完全有足够能力实现retrofit不支持的功能那你就选择retrofit

至于我自己属于没有net都不会写代码了, net属于国内开发环境下的经验积累开源库

好的,感谢解答

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
寻求帮助 Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants