MCPcopy
hub / github.com/urllib3/urllib3 / MockChunkedIncompleteRead

Class MockChunkedIncompleteRead

test/test_response.py:2090–2092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2088
2089
2090class MockChunkedIncompleteRead(MockChunkedEncodingResponse):
2091 def _encode_chunk(self, chunk: bytes) -> bytes:
2092 return f"9999\r\n{chunk.decode()}\r\n".encode()
2093
2094
2095class MockChunkedInvalidChunkLength(MockChunkedEncodingResponse):

Callers 1

test_incomplete_chunkMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_incomplete_chunkMethod · 0.68