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

Class ExampleContentview

test/mitmproxy/contentviews/test__api.py:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
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()
23
24
25class FailingPrettifyContentview(Contentview):

Callers 6

test_dunder_methodsFunction · 0.90
test_simpleFunction · 0.85
test_default_implsFunction · 0.85

Calls

no outgoing calls

Tested by 6

test_dunder_methodsFunction · 0.72
test_simpleFunction · 0.68
test_default_implsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…