if the type of response is one of the following ,
image
audio
video
zip
pdf
etc show user a button that they can click to download the response to their file system or discard it.
if the response body is larger than say 20mb , stop reading the body and just show user that larger responses aren't supported for memory constraints, just show them response headers and other response metadata.
if the type of response is one of the following , image audio video zip pdf
etc show user a button that they can click to download the response to their file system or discard it. if the response body is larger than say 20mb , stop reading the body and just show user that larger responses aren't supported for memory constraints, just show them response headers and other response metadata.