MCPcopy
hub / github.com/mitmproxy/mitmproxy / fetch

Method fetch

test/mitmproxy/tools/web/test_app.py:91–94  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

89 return f"{self._app.settings['auth_cookie_name']()}={auth_cookie}"
90
91 def fetch(self, *args, **kwargs) -> httpclient.HTTPResponse:
92 kwargs.setdefault("headers", {}).setdefault("Cookie", self.auth_cookie)
93 # tornado disallows POST without content by default.
94 return super().fetch(*args, **kwargs, allow_nonstandard_methods=True)
95
96 def put_json(self, url, data: dict) -> httpclient.HTTPResponse:
97 return self.fetch(

Callers 15

put_jsonMethod · 0.95
test_indexMethod · 0.95
test_filter_helpMethod · 0.95
test_flowsMethod · 0.95
test_flows_dumpMethod · 0.95
test_clearMethod · 0.95
test_resumeMethod · 0.95
test_killMethod · 0.95
test_flow_deleteMethod · 0.95

Calls 1

setdefaultMethod · 0.45

Tested by

no test coverage detected