MCPcopy
hub / github.com/mitmproxy/mitmproxy / decode

Method decode

test/mitmproxy/proxy/layers/http/test_http3.py:234–240  ·  view source on GitHub ↗
(data: bytes)

Source from the content-addressed store, hash-verified

232 self.decoder_placeholders.append(placeholder)
233
234 def decode(data: bytes) -> None:
235 buf = Buffer(data=data)
236 assert buf.pull_uint_var() == FrameType.HEADERS
237 frame_data = buf.pull_bytes(buf.pull_uint_var())
238 decoder, actual_headers = self.decoder.feed_header(stream_id, frame_data)
239 placeholder.setdefault(decoder)
240 assert headers == actual_headers
241
242 yield self.send_encoder()
243 yield quic.SendQuicStreamData(

Callers 15

run_testsFunction · 0.45
test_authorityMethod · 0.45
_test_decoded_attrFunction · 0.45
test_modifyMethod · 0.45
test_cannot_decodeMethod · 0.45
test_simpleMethod · 0.45
test_with_caMethod · 0.45
screen_contentsMethod · 0.45
get_jsonFunction · 0.45
auth_cookieMethod · 0.45

Calls 1

setdefaultMethod · 0.45

Tested by

no test coverage detected