When streaming the response (e.g. using Response.raw.read()) the
underlying HTTPResponse data stream is fully consumed. This means
that subsequent requests will return an empty content.
Deserializing a new Response every time Interaction.as_response() is
called allows us to use a fresh identical Response every time. It
does not introduce a significant overhead compared to the previous
cached version.
When streaming the response (e.g. using
Response.raw.read()
) the underlying HTTPResponse data stream is fully consumed. This means that subsequent requests will return an empty content.Deserializing a new Response every time
Interaction.as_response()
is called allows us to use a fresh identical Response every time. It does not introduce a significant overhead compared to the previous cached version.