Apply compression on the response body. If more_body is False, any compression file should be closed. If it isn't, it won't be closed automatically until all background tasks complete.
(self, body: bytes, *, more_body: bool)
| 107 | await self.send(message) |
| 108 | |
| 109 | def apply_compression(self, body: bytes, *, more_body: bool) -> bytes: |
| 110 | """Apply compression on the response body. |
| 111 | |
| 112 | If more_body is False, any compression file should be closed. If it |
| 113 | isn't, it won't be closed automatically until all background tasks |
| 114 | complete. |
| 115 | """ |
| 116 | return body |
| 117 | |
| 118 | |
| 119 | class GZipResponder(IdentityResponder): |
no outgoing calls
no test coverage detected