Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/urllib3/urllib3
/ put
Method
put
src/urllib3/response.py:395–397 ·
view source on GitHub ↗
(self, data: bytes)
Source
from the content-addressed store, hash-verified
393
return
self._size
394
395
def
put(self, data: bytes) -> None:
396
self.buffer.append(data)
397
self._size += len(data)
398
399
def
get(self, n: int) -> bytes:
400
if
n == 0:
Callers
14
test_single_chunk
Method · 0.95
test_read_too_much
Method · 0.95
test_multiple_chunks
Method · 0.95
test_get_all_single
Method · 0.95
test_get_all_many
Method · 0.95
test_memory_usage
Method · 0.95
test_memory_usage_single_chunk
Method · 0.95
test_memory_usage_splitting_chunk
Method · 0.95
test_read_with_all_data_already_in_decompressor
Method · 0.80
test_full_read_after_partial_read_with_buffered_decoded_data
Method · 0.80
read
Method · 0.80
read1
Method · 0.80
Calls
no outgoing calls
Tested by
10
test_single_chunk
Method · 0.76
test_read_too_much
Method · 0.76
test_multiple_chunks
Method · 0.76
test_get_all_single
Method · 0.76
test_get_all_many
Method · 0.76
test_memory_usage
Method · 0.76
test_memory_usage_single_chunk
Method · 0.76
test_memory_usage_splitting_chunk
Method · 0.76
test_read_with_all_data_already_in_decompressor
Method · 0.64
test_full_read_after_partial_read_with_buffered_decoded_data
Method · 0.64