@@ -140,29 +140,6 @@ first positional parameter.
140
140
141
141
.. versionadded :: 0.15
142
142
143
- .. attribute :: compression
144
-
145
- Read-only :class: `bool ` property, ``True `` if compression is enabled.
146
-
147
- ``False `` by default.
148
-
149
- .. versionadded :: 0.14
150
-
151
- .. seealso :: :meth:`enable_compression`
152
-
153
- .. method :: enable_compression(force=False)
154
-
155
- Enable compression.
156
-
157
- When *force * is ``False `` (default) compression is used only
158
- when *deflate * is in *Accept-Encoding * request's header.
159
-
160
- *Accept-Encoding * is not checked if *force * is ``True ``.
161
-
162
- .. versionadded :: 0.14
163
-
164
- .. seealso :: :attr:`compression`
165
-
166
143
.. attribute :: payload
167
144
168
145
A :class: `~aiohttp.streams.FlowControlStreamReader ` instance,
@@ -373,18 +350,49 @@ StreamResponse
373
350
Disable :attr: `keep_alive ` for connection. There are no ways to
374
351
enable it back.
375
352
353
+ .. attribute :: compression
354
+
355
+ Read-only :class: `bool ` property, ``True `` if compression is enabled.
356
+
357
+ ``False `` by default.
358
+
359
+ .. versionadded :: 0.14
360
+
361
+ .. seealso :: :meth:`enable_compression`
362
+
363
+ .. method :: enable_compression(force=False)
364
+
365
+ Enable compression.
366
+
367
+ When *force * is ``False `` (default) compression is used only
368
+ when *deflate * is in *Accept-Encoding * request's header.
369
+
370
+ *Accept-Encoding * is not checked if *force * is ``True ``.
371
+
372
+ .. versionadded :: 0.14
373
+
374
+ .. seealso :: :attr:`compression`
375
+
376
376
.. attribute :: chunked
377
377
378
378
Read-only property, indicates if chunked encoding is on.
379
379
380
380
Can be enabled by :meth: `enable_chunked_encoding ` call.
381
381
382
+ .. versionadded :: 0.14
383
+
384
+ .. seealso :: :attr:`enable_chunked_encoding`
385
+
382
386
.. method :: enable_chunked_encoding
383
387
384
388
Enables :attr: `chunked ` encoding for response. There are no ways to
385
389
disable it back. With enabled :attr: `chunked ` encoding each `write() `
386
390
operation encoded in separate chunk.
387
391
392
+ .. versionadded :: 0.14
393
+
394
+ .. seealso :: :attr:`chunked`
395
+
388
396
.. attribute :: headers
389
397
390
398
:class: `~aiohttp.multidict.CIMultiDict ` instance
0 commit comments