@@ -32,7 +32,7 @@ def __init__(
32
32
client = None ,
33
33
byte_range : Range | tuple [int , int ] = Range ("[0, 0)" ),
34
34
pruning_level : int = 0 ,
35
- single_request : bool = False ,
35
+ single_request : bool = True ,
36
36
scan_ihdr : bool = True ,
37
37
enumerate_chunks : bool = True ,
38
38
):
@@ -55,13 +55,14 @@ def __init__(
55
55
resize overlapped ranges, ``1`` will delete overlapped ranges, and ``2`` will
56
56
raise an error when a new range is added which overlaps a pre-existing range).
57
57
58
- If ``single_request`` is ``True`` (default: ``False ``), then the behaviour when
58
+ If ``single_request`` is ``True`` (default: ``True ``), then the behaviour when
59
59
an empty ``byte_range`` is passed instead becomes to send a standard streaming
60
60
GET request (not a partial content request at all), and instead the class will
61
61
then facilitate an interface that 'simulates' these calls, i.e. as if each time
62
62
:meth:`~range_streams.stream.RangeStream.add` was used the range requests were
63
63
being returned instantly (as everything needed was already obtained on the first
64
- request at initialisation). More performant when reading a stream linearly.
64
+ request at initialisation). More performant when reading a stream linearly,
65
+ and defaults to ``True`` in the PNG codec as chunks are read linearly.
65
66
66
67
- See docs for the
67
68
:meth:`~range_streams.stream.RangeStream.handle_overlap`
0 commit comments