简体   繁体   English

取消调用后能否读取okhttp响应体数据?

[英]Can okhttp response body data be read after the call was cancelled?

In okhttp interceptor code, is it possible, after a call was cancelled, to read whatever partial response data might have been returned by the server?在 okhttp 拦截器代码中,在调用被取消后,是否有可能读取服务器可能返回的任何部分响应数据?

The end goal is to cache partial content so that we can later resume with an http range request.最终目标是缓存部分内容,以便我们稍后可以使用 http 范围请求恢复。

Use Network inspector to see it.使用网络检查器查看它。

请参阅所附图片。希望您能得到它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM