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

Method kill

mitmproxy/websocket.py:119–126  ·  view source on GitHub ↗

A deprecated alias for `.drop()`.

(self)

Source from the content-addressed store, hash-verified

117 self.dropped = True
118
119 def kill(self): # pragma: no cover
120 """A deprecated alias for `.drop()`."""
121 warnings.warn(
122 "WebSocketMessage.kill() is deprecated, use .drop() instead.",
123 DeprecationWarning,
124 stacklevel=2,
125 )
126 self.drop()
127
128 @property
129 def text(self) -> str:

Callers

nothing calls this directly

Calls 2

dropMethod · 0.95
warnMethod · 0.80

Tested by

no test coverage detected