Iter the response encoded with the encoding of the response. If the response object is invoked as WSGI application the return value of this method is used as application iterator unless :attr:`direct_passthrough` was activated.
(self)
| 356 | self.call_on_close(close) |
| 357 | |
| 358 | def iter_encoded(self) -> t.Iterator[bytes]: |
| 359 | """Iter the response encoded with the encoding of the response. |
| 360 | If the response object is invoked as WSGI application the return |
| 361 | value of this method is used as application iterator unless |
| 362 | :attr:`direct_passthrough` was activated. |
| 363 | """ |
| 364 | # Encode in a separate function so that self.response is fetched |
| 365 | # early. This allows us to wrap the response with the return |
| 366 | # value from get_app_iter or iter_encoded. |
| 367 | return _iter_encoded(self.response) |
| 368 | |
| 369 | @property |
| 370 | def is_streamed(self) -> bool: |