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

Method drop

mitmproxy/websocket.py:115–117  ·  view source on GitHub ↗

Drop this message, i.e. don't forward it to the other peer.

(self)

Source from the content-addressed store, hash-verified

113 return self.type == Opcode.TEXT
114
115 def drop(self):
116 """Drop this message, i.e. don't forward it to the other peer."""
117 self.dropped = True
118
119 def kill(self): # pragma: no cover
120 """A deprecated alias for `.drop()`."""

Callers 6

test_basicMethod · 0.95
killMethod · 0.95
test_drop_messageFunction · 0.80
OaFunction · 0.80
websocket_messageFunction · 0.80
websocket_messageFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_basicMethod · 0.76
test_drop_messageFunction · 0.64