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

Method flow

examples/contrib/test_jsondump.py:18–28  ·  view source on GitHub ↗
(self, resp_content=b"message")

Source from the content-addressed store, hash-verified

16 return ""
17
18 def flow(self, resp_content=b"message"):
19 times = dict(
20 timestamp_start=746203272,
21 timestamp_end=746203272,
22 )
23
24 # Create a dummy flow for testing
25 return tflow.tflow(
26 req=tutils.treq(method=b"GET", **times),
27 resp=tutils.tresp(content=resp_content, **times),
28 )
29
30 def test_simple(self, tmpdir):
31 with taddons.context() as tctx:

Callers 3

test_simpleMethod · 0.95
test_contentencodeMethod · 0.95
test_httpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected