Metadata about the data that is being prettified. Do not rely on any given attribute to be present.
| 84 | |
| 85 | @dataclass |
| 86 | class 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 | |
| 116 | Metadata.__init__.__doc__ = "@private" |
no outgoing calls
searching dependent graphs…