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

Class CloseTcpConnection

mitmproxy/proxy/commands.py:101–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100
101class CloseTcpConnection(CloseConnection):
102 half_close: bool
103 """
104 If True, only close our half of the connection by sending a FIN packet.
105 This is required from some protocols which close their end to signal completion and then continue reading,
106 for example HTTP/1.0 without Content-Length header.
107 """
108
109 def __init__(self, connection: Connection, half_close: bool = False):
110 super().__init__(connection)
111 self.half_close = half_close
112
113
114class StartHook(Command, mitmproxy.hooks.Hook):

Callers 4

_handle_eventMethod · 0.90
test_simpleFunction · 0.90

Calls

no outgoing calls

Tested by 4

_handle_eventMethod · 0.72
test_simpleFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…