(sock: socket.socket)
| 931 | @skip_if_no_httptools |
| 932 | def test_fragmentation(unused_tcp_port: int): |
| 933 | def receive_all(sock: socket.socket): |
| 934 | chunks: list[bytes] = [] |
| 935 | while True: |
| 936 | chunk = sock.recv(1024) |
| 937 | if not chunk: |
| 938 | break |
| 939 | chunks.append(chunk) |
| 940 | return b"".join(chunks) |
| 941 | |
| 942 | app = Response("Hello, world", media_type="text/plain") |
| 943 |
no test coverage detected