LibraryActive

mitmproxy.proxy.context

API reference for the Context class in mitmproxy's proxy core, providing client/server connections and options.

Open source page

Field note

What it does

The Context class is passed to each protocol layer in mitmproxy's proxy core. It holds the client connection, server connection (initially with None address), options, and the protocol layer stack. It provides a fork method to create a copy for new layers.

Capabilities

Available capabilities

Tags

Tags

Ways to use it

Ways to use it

No integrations filed yet.

Product features

Product features

Fork Context

Creates a copy of the context for a new protocol layer.