MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / _tctx

Function _tctx

test/mitmproxy/proxy/layers/http/test_http_fuzz.py:318–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316
317
318def _tctx() -> context.Context:
319 tctx = context.Context(
320 connection.Client(
321 peername=("client", 1234),
322 sockname=("127.0.0.1", 8080),
323 timestamp_start=1605699329,
324 ),
325 opts,
326 )
327 tctx.options.http2_ping_keepalive = 0
328 return tctx
329
330
331def _h2_response(chunks):

Callers 5

test_fuzz_h1_requestFunction · 0.85
test_fuzz_h1_responseFunction · 0.85
h2_layerFunction · 0.85
_h2_responseFunction · 0.85
_test_cancelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…