The `force_close` method in `aiohttp.web.StreamResponse` is used to forcefully close the response stream. This method terminates the connection with the client, even if the response body has not been fully sent. It is typically used to handle error scenarios or to abort ongoing responses.
Python StreamResponse.force_close - 18 examples found. These are the top rated real world Python examples of aiohttp.web.StreamResponse.force_close extracted from open source projects. You can rate examples to help us improve the quality of examples.