mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 10:18:26 +00:00
refactor and remove dead code
This commit is contained in:
parent
488be14412
commit
6289d9bca8
23 changed files with 250 additions and 354 deletions
|
|
@ -4,7 +4,7 @@ import mitmproxy.websocket
|
|||
|
||||
|
||||
class Events:
|
||||
# Websocket lifecycle
|
||||
# WebSocket lifecycle
|
||||
def websocket_handshake(self, flow: mitmproxy.http.HTTPFlow):
|
||||
"""
|
||||
Called when a client wants to establish a WebSocket connection. The
|
||||
|
|
@ -15,7 +15,7 @@ class Events:
|
|||
|
||||
def websocket_start(self, flow: mitmproxy.websocket.WebSocketFlow):
|
||||
"""
|
||||
A websocket connection has commenced.
|
||||
A WebSocket connection has commenced.
|
||||
"""
|
||||
|
||||
def websocket_message(self, flow: mitmproxy.websocket.WebSocketFlow):
|
||||
|
|
@ -28,10 +28,10 @@ class Events:
|
|||
|
||||
def websocket_error(self, flow: mitmproxy.websocket.WebSocketFlow):
|
||||
"""
|
||||
A websocket connection has had an error.
|
||||
A WebSocket connection has had an error.
|
||||
"""
|
||||
|
||||
def websocket_end(self, flow: mitmproxy.websocket.WebSocketFlow):
|
||||
"""
|
||||
A websocket connection has ended.
|
||||
A WebSocket connection has ended.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue