h11
h11 copied to clipboard
Zerocopy Data Receiving
socket.recv_into() accepts a Python writable buffer to receive socket data without any copy. To take advantage of that asyncio have added a Protocol interface for buffered streaming protocols suitable for high performance network applications.
I think h11.Connection could expose its buffer like asyncio.BufferedProtocol does.