MCPcopy
hub / github.com/mitmproxy/mitmproxy / write

Method write

test/mitmproxy/proxy/layers/quic/test__stream_layers.py:405–414  ·  view source on GitHub ↗
(self, buf: bytes)

Source from the content-addressed store, hash-verified

403 self.quic.connect(self.address, now=self.now)
404
405 def write(self, buf: bytes):
406 self.now = self.now + 0.1
407 if self.quic is None:
408 quic_buf = QuicBuffer(data=buf)
409 header = pull_quic_header(quic_buf, host_cid_length=8)
410 self.quic = QuicConnection(
411 configuration=self.ctx,
412 original_destination_connection_id=header.destination_cid,
413 )
414 self.quic.receive_datagram(buf, self.address, self.now)
415
416 def read(self) -> bytes:
417 self.now = self.now + 0.1

Callers 15

test_simpleMethod · 0.95
test_untrusted_certMethod · 0.95
test_server_requiredMethod · 0.95
test_savingFunction · 0.45
test_errorMethod · 0.45
test_load_pathFunction · 0.45
_echo_serverFunction · 0.45
test_udp_start_stopFunction · 0.45
test_dual_stackFunction · 0.45
test_dns_start_stopFunction · 0.45
test_tun_modeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected