0

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?

The end goal is to cache partial content so that we can later resume with an http range request.

Roger
  • 563
  • 5
  • 12

1 Answers1

0

Use Network inspector to see it .

Please see the attached image .Hope you will get it

monjur
  • 19
  • 7
  • this doesn’t answer the question - I’d like to know whether, after the Call has been canceled, is it possible to read whatever data might be in the underlying response body Buffer, or whether it’s “too late” because the buffer has already been cleared. – Roger Dec 21 '22 at 15:00
  • I don't think there will be any data if the API call has been canceled. – monjur Dec 22 '22 at 10:59