MCPcopy
hub / github.com/mitmproxy/mitmproxy / put_json

Method put_json

test/mitmproxy/tools/web/test_app.py:96–102  ·  view source on GitHub ↗
(self, url, data: dict)

Source from the content-addressed store, hash-verified

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(
98 url,
99 method="PUT",
100 body=json.dumps(data),
101 headers={"Content-Type": "application/json"},
102 )
103
104 def test_index(self):
105 response = self.fetch("/")

Callers 2

test_flow_updateMethod · 0.95
test_option_updateMethod · 0.95

Calls 2

fetchMethod · 0.95
dumpsMethod · 0.80

Tested by

no test coverage detected