azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

Make it so that `Response` contents can be lazily deserialized where necessary.

Open JonathanGiles opened this issue 1 year ago • 2 comments

JonathanGiles avatar Feb 26 '24 21:02 JonathanGiles

We could use RequestOptions to allow for passing some parameter to eagerly buffer a response's body, eagerly deserialize it, or even discard it. This parameter can be an enum, for example.

vcolin7 avatar Feb 26 '24 22:02 vcolin7

We need to think of the default behavior. Probably eagerly buffer to avoid holding onto a connection for long.

vcolin7 avatar Feb 26 '24 22:02 vcolin7