Skip to content
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

请问如何监听get请求的进度? #14

Closed
jayleco opened this issue Oct 13, 2017 · 4 comments
Closed

请问如何监听get请求的进度? #14

jayleco opened this issue Oct 13, 2017 · 4 comments

Comments

@jayleco
Copy link

jayleco commented Oct 13, 2017

比如使用okhttp请求一个网页,如:https://github.com/JessYanCoding 如何实现获取请求这个网页的进度?
我看了下demo好像只有文件下载和上传以及glide的进度监听啊

说实话,你这个项目帮了我大忙,节省了我这个菜鸟大量的工作时间,感谢作者

@JessYanCoding
Copy link
Owner

加载一个网页的进度是浏览器的需求,这个框架和你怎么请求无关,只要你用 Okhttp 或者 Retrofit 进行请求,并且服务器返回了 body 就可以读取进度

@jayleco
Copy link
Author

jayleco commented Oct 14, 2017

@JessYanCoding 不是浏览器需求,我是通过okhttp请求网页,获取html代码

@JessYanCoding
Copy link
Owner

和 Demo 的用法一样

@jayleco
Copy link
Author

jayleco commented Oct 14, 2017

好的,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants