MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / SendData

Class SendData

mitmproxy/proxy/commands.py:69–82  ·  view source on GitHub ↗

Send data to a remote peer

Source from the content-addressed store, hash-verified

67
68
69class SendData(ConnectionCommand):
70 """
71 Send data to a remote peer
72 """
73
74 data: bytes
75
76 def __init__(self, connection: Connection, data: bytes):
77 super().__init__(connection)
78 self.data = data
79
80 def __repr__(self):
81 target = str(self.connection).split("(", 1)[0].lower()
82 return f"SendData({target}, {self.data!r})"
83
84
85class OpenConnection(ConnectionCommand):

Callers 15

_handle_eventMethod · 0.90
start_handshakeMethod · 0.90
send_dataMethod · 0.90
test_simpleFunction · 0.90
no_flow_hooksFunction · 0.90

Calls

no outgoing calls

Tested by 15

_handle_eventMethod · 0.72
start_handshakeMethod · 0.72
send_dataMethod · 0.72
test_simpleFunction · 0.72
no_flow_hooksFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…