MCPcopy Create free account
hub / github.com/SuperJJ007/CSSwitch / _connect_reply

Method _connect_reply

proxy/csswitch_proxy.py:873–879  ·  view source on GitHub ↗

CONNECT 的短响应(拒绝/错误):空体 + 主动关连接。

(self, code)

Source from the content-addressed store, hash-verified

871 self.close_connection = True
872
873 def _connect_reply(self, code):
874 """CONNECT 的短响应(拒绝/错误):空体 + 主动关连接。"""
875 self.send_response(code)
876 self.send_header("Content-Length", "0")
877 self.send_header("Connection", "close")
878 self.end_headers()
879 self.close_connection = True
880
881 @staticmethod
882 def _tunnel(client, upstream):

Callers 1

do_CONNECTMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected