class _RangeWrapper:
This class can be used to convert an iterable object into an iterable that will only yield a piece of the underlying content. It yields blocks until the underlying stream range is fully read. The yielded blocks will have a size that can't exceed the original iterator defined block size, but that can be smaller.
If you're using this object together with a Response
you have
to use the direct_passthrough
mode.
Parameters | |
iterable | an iterable object with a __next__ method. |
start_byte | byte from which read will start. |
byte_range | how many bytes to read. |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __next__ |
Undocumented |
Method | close |
Undocumented |
Instance Variable | byte_range |
Undocumented |
Instance Variable | end_byte |
Undocumented |
Instance Variable | end_reached |
Undocumented |
Instance Variable | iterable |
Undocumented |
Instance Variable | read_length |
Undocumented |
Instance Variable | seekable |
Undocumented |
Instance Variable | start_byte |
Undocumented |
Method | _first_iteration |
Undocumented |
Method | _next |
Undocumented |
Method | _next_chunk |
Undocumented |