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

Method send_data

mitmproxy/proxy/layers/http/_http_h3.py:278–282  ·  view source on GitHub ↗

Sends data over the given stream.

(self, stream_id: int, data: bytes, end_stream: bool = False)

Source from the content-addressed store, hash-verified

276 self._mock.stop_send(stream_id=stream_id, error_code=error_code)
277
278 def send_data(self, stream_id: int, data: bytes, end_stream: bool = False) -> None:
279 """Sends data over the given stream."""
280
281 super().send_data(stream_id, data, end_stream)
282 self._after_send(stream_id, end_stream)
283
284 def send_datagram(self, flow_id: int, data: bytes) -> None:
285 # supporting datagrams would require additional information from the underlying QUIC connection

Callers 3

_handle_eventMethod · 0.45
end_streamMethod · 0.45
_handle_eventMethod · 0.45

Calls 1

_after_sendMethod · 0.95

Tested by

no test coverage detected