Changes between Initial Version and Version 1 of Ticket #18796, comment 1
- Timestamp:
- Oct 20, 2012, 5:38:35 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18796, comment 1
initial v1 1 When `HttpResponse` is instantiated with an iterator, the contents of the iterator should be consumed and saved as soon as `re quest.content` is accessed.1 When `HttpResponse` is instantiated with an iterator, the contents of the iterator should be consumed and saved as soon as `response.content` is accessed (or other methods requiring knowledge of the response's content). 2 2 3 It remains to be seen if we want to keep the current (undocumented) streaming behavior of `HttpResponse`.3 We probably want to keep the current (undocumented) streaming behavior of `HttpResponse` and not unconditionally consume the iterator in `__init__`. 4 4 5 5 This was initially part of #7581 — but I'm reducing the scope of that ticket to something manageable.