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

Method send_data

mitmproxy/proxy/layers/tls.py:452–458  ·  view source on GitHub ↗
(self, data: bytes)

Source from the content-addressed store, hash-verified

450 yield from super().receive_close()
451
452 def send_data(self, data: bytes) -> layer.CommandGenerator[None]:
453 try:
454 self.tls.sendall(data)
455 except (SSL.ZeroReturnError, SSL.SysCallError):
456 # The other peer may still be trying to send data over, which we discard here.
457 pass
458 yield from self.tls_interact()
459
460 def send_close(
461 self, command: commands.CloseConnection

Callers

nothing calls this directly

Calls 1

tls_interactMethod · 0.95

Tested by

no test coverage detected