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

Function tclient_conn

mitmproxy/test/tflow.py:217–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215
216
217def tclient_conn() -> connection.Client:
218 c = connection.Client(
219 id=str(uuid.uuid4()),
220 peername=("127.0.0.1", 22),
221 sockname=("", 0),
222 mitmcert=None,
223 timestamp_start=946681200,
224 timestamp_tls_setup=946681201,
225 timestamp_end=946681206,
226 sni="address",
227 cipher="cipher",
228 alpn=b"http/1.1",
229 tls_version="TLSv1.2",
230 state=ConnectionState.OPEN,
231 error=None,
232 tls=False,
233 certificate_list=[],
234 alpn_offers=[],
235 cipher_list=[],
236 proxy_mode=ProxyMode.parse("regular"),
237 )
238 return c
239
240
241def tserver_conn() -> connection.Server:

Callers 12

test_eqMethod · 0.90
test_stateMethod · 0.90
test_reprsFunction · 0.90
test_reprsFunction · 0.90
test_reprsFunction · 0.90
test_self_connectFunction · 0.90
ttcpflowFunction · 0.85
tudpflowFunction · 0.85
twebsocketflowFunction · 0.85
tdnsflowFunction · 0.85
tflowFunction · 0.85
tdummyflowFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by 6

test_eqMethod · 0.72
test_stateMethod · 0.72
test_reprsFunction · 0.72
test_reprsFunction · 0.72
test_reprsFunction · 0.72
test_self_connectFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…