MCPcopy
hub / github.com/mitmproxy/mitmproxy / Metadata

Class Metadata

mitmproxy/contentviews/_api.py:86–113  ·  view source on GitHub ↗

Metadata about the data that is being prettified. Do not rely on any given attribute to be present.

Source from the content-addressed store, hash-verified

84
85@dataclass
86class Metadata:
87 """
88 Metadata about the data that is being prettified.
89
90 Do not rely on any given attribute to be present.
91 """
92
93 flow: Flow | None = None
94 """The flow that the data belongs to, if any."""
95
96 content_type: str | None = None
97 """The HTTP content type of the data, if any."""
98 http_message: http.Message | None = None
99 """The HTTP message that the data belongs to, if any."""
100 tcp_message: tcp.TCPMessage | None = None
101 """The TCP message that the data belongs to, if any."""
102 udp_message: udp.UDPMessage | None = None
103 """The UDP message that the data belongs to, if any."""
104 websocket_message: WebSocketMessage | None = None
105 """The websocket message that the data belongs to, if any."""
106 dns_message: DNSMessage | None = None
107 """The DNS message that the data belongs to, if any."""
108
109 protobuf_definitions: Path | None = None
110 """Path to a .proto file that's used to resolve Protobuf field names."""
111
112 original_data: bytes | None = None
113 """When reencoding: The original data that was prettified."""
114
115
116Metadata.__init__.__doc__ = "@private"

Callers 15

test_simpleFunction · 0.90
test_use_textFunction · 0.90
test_format_xmlFunction · 0.90
test_render_priorityFunction · 0.90
test_render_priorityFunction · 0.90
test_view_graphqlFunction · 0.90
test_simpleFunction · 0.90
test_default_implsFunction · 0.90
test_metadataMethod · 0.90
test_view_http3Function · 0.90
test_render_priorityFunction · 0.90

Calls

no outgoing calls

Tested by 15

test_simpleFunction · 0.72
test_use_textFunction · 0.72
test_format_xmlFunction · 0.72
test_render_priorityFunction · 0.72
test_render_priorityFunction · 0.72
test_view_graphqlFunction · 0.72
test_simpleFunction · 0.72
test_default_implsFunction · 0.72
test_metadataMethod · 0.72
test_view_http3Function · 0.72
test_render_priorityFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…