MCPcopy
hub / github.com/mitmproxy/mitmproxy / prettify

Method prettify

test/mitmproxy/contentviews/test__api.py:18–19  ·  view source on GitHub ↗
(self, data: bytes, metadata: Metadata)

Source from the content-addressed store, hash-verified

16
17class ExampleContentview(InteractiveContentview):
18 def prettify(self, data: bytes, metadata: Metadata) -> str:
19 return data.decode()
20
21 def reencode(self, prettified: str, metadata: Metadata) -> bytes:
22 return prettified.encode()

Callers 15

test_simpleFunction · 0.45
test_use_textFunction · 0.45
test_format_xmlFunction · 0.45
test_view_graphqlFunction · 0.45
test_metadataMethod · 0.45
test_view_http3Function · 0.45
test_view_zipFunction · 0.45
test_view_zip_emptyFunction · 0.45
test_wbxmlFunction · 0.45
test_view_urlencodedFunction · 0.45
test_view_multipartFunction · 0.45

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected