| 99 | |
| 100 | |
| 101 | class 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 | |
| 114 | class StartHook(Command, mitmproxy.hooks.Hook): |
no outgoing calls
searching dependent graphs…