Contents# Introduction Quickstart Installing Using Questions & Answers How mitm works HTTP & HTTPS Proxies Man-in-the-middle Docs Trusting mitm Customizing Path Installing CA Internals of mitm Core mitm.core.Host mitm.core.Host.reader mitm.core.Host.writer mitm.core.Host.mitm_managed mitm.core.Host.ip mitm.core.Host.port mitm.core.Connection mitm.core.Connection.client mitm.core.Connection.server mitm.core.Connection.protocol Extensions mitm.core.Middleware mitm.core.Middleware.mitm_started() mitm.core.Middleware.client_connected() mitm.core.Middleware.server_connected() mitm.core.Middleware.client_data() mitm.core.Middleware.server_data() mitm.core.Middleware.client_disconnected() mitm.core.Middleware.server_disconnected() mitm.core.Protocol mitm.core.Protocol.bytes_needed mitm.core.Protocol.buffer_size mitm.core.Protocol.timeout mitm.core.Protocol.keep_alive mitm.core.Protocol.resolve() mitm.core.Protocol.connect() mitm.core.Protocol.handle() API core Host Host.reader Host.writer Host.mitm_managed Host.ip Host.port Connection Flow Middleware Middleware.mitm_started() Middleware.client_connected() Middleware.server_connected() Middleware.client_data() Middleware.server_data() Middleware.client_disconnected() Middleware.server_disconnected() InvalidProtocol Protocol Protocol.__init__() Protocol.resolve() Protocol.connect() Protocol.handle() crypto crypto.new_RSA() crypto.new_X509() LRU_MAX_SIZE CertificateAuthority CertificateAuthority.__init__() CertificateAuthority.init() CertificateAuthority.new_X509() CertificateAuthority.new_context() CertificateAuthority.save() CertificateAuthority.load() extension Middlewares Log HTTPLog Protocols HTTP mitm MITM MITM.__init__() MITM.entry() MITM.mitm()