MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / decode_frame

Function decode_frame

test/mitmproxy/proxy/layers/http/test_http3.py:47–50  ·  view source on GitHub ↗
(frame_type: int, frame_data: bytes)

Source from the content-addressed store, hash-verified

45
46
47def decode_frame(frame_type: int, frame_data: bytes) -> bytes:
48 buf = Buffer(data=frame_data)
49 assert buf.pull_uint_var() == frame_type
50 return buf.pull_bytes(buf.pull_uint_var())
51
52
53class CallbackPlaceholder(tutils._Placeholder[bytes]):

Callers 1

test_upstream_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…