MCPcopy Index your code
hub / github.com/aio-libs/aiohttp / _handle_frame

Method _handle_frame

tests/test_websocket_parser.py:35–42  ·  view source on GitHub ↗
(
            fin: bool,
            opcode: int,
            payload: bytes | bytearray,
            compressed: int,
        )

Source from the content-addressed store, hash-verified

33 frames: list[tuple[bool, int, bytes | bytearray, int]] = []
34
35 def _handle_frame(
36 fin: bool,
37 opcode: int,
38 payload: bytes | bytearray,
39 compressed: int,
40 ) -> None:
41 # This method is overridden to allow for patching in tests.
42 frames.append((fin, opcode, payload, compressed))
43
44 with mock.patch.object(self, "_handle_frame", _handle_frame):
45 self._feed_data(data)

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected