MCPcopy
hub / github.com/mitmproxy/mitmproxy / encode

Method encode

test/mitmproxy/proxy/layers/http/test_http3.py:258–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256 data = tutils.Placeholder(bytes)
257
258 def encode() -> bytes:
259 encoder, frame_data = self.encoder.encode(stream_id, headers)
260 data.setdefault(encode_frame(FrameType.HEADERS, frame_data))
261 return encoder
262
263 yield quic.QuicStreamDataReceived(
264 connection=self.conn,

Callers 15

memoryleak2.pyFile · 0.45
test_simpleMethod · 0.45
test_modifyMethod · 0.45
test_cannot_decodeMethod · 0.45
test_cannot_encodeMethod · 0.45
test_simpleMethod · 0.45
test_bodyMethod · 0.45
test_with_caMethod · 0.45
test_is_mostly_binFunction · 0.45
test_tun_modeFunction · 0.45

Calls 1

setdefaultMethod · 0.45

Tested by

no test coverage detected