3 ms·
If you want efficiency, I think it is the only way to do it. Responses can be huge. Why would the library commit to storing them at all, and determine the data
by Someone 11y ago
If you want efficiency, I think it is the only way to do it.
Responses can be huge. Why would the library commit to storing them at all, and determine the data type to store them in?
Yes, you could make an API that allows the library user to control that, but that would be needlessly complex compared to having a single call "give me the response stream", and letting the caller of that decide how much of the data to read, and what to do with it.