LibraryActive

mitmproxy.contentviews

A set of content views for formatting, decoding, highlighting, and re-encoding data in mitmproxy.

Open source page

Field note

What it does

mitmproxy.contentviews provides a registry of content views used to format, decode, highlight, and re-encode data, primarily for HTTP message bodies but also for other contexts like WebSocket messages. It includes views for CSS, DNS, GraphQL, HTTP/3, images, JavaScript, JSON, MQTT, multipart, query parameters, raw data, Socket.IO, URL-encoded, WBXML, XML/HTML, and ZIP. It also supports custom contentviews via the add() function.

Capabilities

Available capabilities

No use cases filed yet.

Tags

Tags

Ways to use it

Ways to use it

No integrations filed yet.

Product features

Product features

Built-in Views

Includes views for CSS, DNS, GraphQL, HTTP/3, image, JavaScript, JSON, MQTT, multipart, query, raw, Socket.IO, urlencoded, WBXML, XML/HTML, and ZIP.

Content View Registry

Registry for managing and selecting content views.

Custom Contentviews

Register custom contentviews via the add() function.

Prettify Message

Format message bodies using the appropriate content view.

Re-encode Message

Re-encode a prettified message back to its original format.

Syntax Highlighting

Supports syntax highlighting formats for content views.