MCPcopy
hub / github.com/mitmproxy/mitmproxy / insert

Method insert

mitmproxy/http.py:167–170  ·  view source on GitHub ↗
(self, index: int, key: str | bytes, value: str | bytes)

Source from the content-addressed store, hash-verified

165 return super().set_all(name, values)
166
167 def insert(self, index: int, key: str | bytes, value: str | bytes):
168 key = _always_bytes(key)
169 value = _always_bytes(value)
170 super().insert(index, key, value)
171
172 def items(self, multi=False):
173 if multi:

Callers 5

test_insertMethod · 0.95
start_handshakeMethod · 0.95
__bool__Method · 0.45
test_insertMethod · 0.45
responseMethod · 0.45

Calls 1

_always_bytesFunction · 0.85

Tested by 2

test_insertMethod · 0.76
test_insertMethod · 0.36