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

Method send_reset

test/mitmproxy/proxy/layers/http/test_http3.py:302–309  ·  view source on GitHub ↗
(
        self, error_code: ErrorCode, stream_id: int = 0
    )

Source from the content-addressed store, hash-verified

300 )
301
302 def send_reset(
303 self, error_code: ErrorCode, stream_id: int = 0
304 ) -> quic.ResetQuicStream:
305 return quic.ResetQuicStream(
306 connection=self.conn,
307 stream_id=stream_id,
308 error_code=int(error_code),
309 )
310
311 def receive_reset(
312 self, error_code: ErrorCode, stream_id: int = 0

Calls

no outgoing calls

Tested by

no test coverage detected