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

Function get_json

test/mitmproxy/tools/web/test_app.py:35–36  ·  view source on GitHub ↗
(resp: httpclient.HTTPResponse)

Source from the content-addressed store, hash-verified

33
34
35def get_json(resp: httpclient.HTTPResponse):
36 return json.loads(resp.body.decode())
37
38
39@pytest.mark.parametrize("filename", list((here / "../../../../web/gen").glob("*.py")))

Callers 8

test_flowsMethod · 0.70
test_flow_contentviewMethod · 0.70
test_commandsMethod · 0.70
test_command_executeMethod · 0.70
test_eventsMethod · 0.70
test_optionsMethod · 0.70
test_process_listMethod · 0.70

Calls 2

loadsMethod · 0.80
decodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…