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

Method send_data

test/mitmproxy/proxy/layers/http/test_http3.py:276–287  ·  view source on GitHub ↗
(
        self,
        data: bytes,
        stream_id: int = 0,
        end_stream: bool = False,
    )

Source from the content-addressed store, hash-verified

274 )
275
276 def send_data(
277 self,
278 data: bytes,
279 stream_id: int = 0,
280 end_stream: bool = False,
281 ) -> quic.SendQuicStreamData:
282 return quic.SendQuicStreamData(
283 self.conn,
284 stream_id=stream_id,
285 data=encode_frame(FrameType.DATA, data),
286 end_stream=end_stream,
287 )
288
289 def receive_data(
290 self,

Callers 5

test_request_trailersFunction · 0.95
test_simpleFunction · 0.45
test_response_trailersFunction · 0.45
test_http3_client_abortsFunction · 0.45
test_h1_to_h2Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected