Skip to content

Commit b8fa534

Browse files
committed
Add documentation for StreamReader.total_raw_bytes
1 parent 20135e8 commit b8fa534

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGES/11483.feature.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Added ``StreamReader.total_raw_bytes`` to check the number of bytes downloaded
2+
-- by :user:`robpats`.

CONTRIBUTORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ Pahaz Blinov
286286
Panagiotis Kolokotronis
287287
Pankaj Pandey
288288
Parag Jain
289+
Patrick Lee
289290
Pau Freixes
290291
Paul Colomiets
291292
Paul J. Dorn

docs/streams.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Streaming API
2020
:attr:`aiohttp.ClientResponse.content` properties for accessing raw
2121
BODY data.
2222

23-
Reading Methods
23+
Reading Attributes and Methods
2424
---------------
2525

2626
.. method:: StreamReader.read(n=-1)
@@ -109,6 +109,13 @@ Reading Methods
109109
to the end of a HTTP chunk.
110110

111111

112+
.. attribute:: StreamReader.total_raw_bytes
113+
114+
The number of bytes of raw data downloaded.
115+
116+
Readonly :class:`int` property.
117+
118+
112119
Asynchronous Iteration Support
113120
------------------------------
114121

0 commit comments

Comments
 (0)