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

Method prettify

mitmproxy/contentviews/_api.py:43–51  ·  view source on GitHub ↗

Transform raw data into human-readable output. May raise an exception (e.g. `ValueError`) if data cannot be prettified.

(
        self,
        data: bytes,
        metadata: Metadata,
    )

Source from the content-addressed store, hash-verified

41
42 @abstractmethod
43 def prettify(
44 self,
45 data: bytes,
46 metadata: Metadata,
47 ) -> str:
48 """
49 Transform raw data into human-readable output.
50 May raise an exception (e.g. `ValueError`) if data cannot be prettified.
51 """
52
53 def render_priority(
54 self,

Callers 1

prettify_messageFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected