MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / _handle_frame

Method _handle_frame

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

Source from the content-addressed store, hash-verified

44 frames: list[tuple[bool, int, bytes | bytearray, int]] = []
45
46 def _handle_frame(
47 fin: bool,
48 opcode: int,
49 payload: bytes | bytearray,
50 compressed: int,
51 ) -> None:
52 # This method is overridden to allow for patching in tests.
53 frames.append((fin, opcode, payload, compressed))
54
55 with mock.patch.object(self, "_handle_frame", _handle_frame):
56 self._feed_data(data)

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected