HTTP/2

HTTP/2 support in mitmproxy is based on the amazing work by the python-hyper community with the hyper-h2 project. It fully encapsulates the internal state of HTTP/2 connections and provides an easy-to-use event-based API.

mitmproxy currently does not support HTTP/2 trailers - but if you want to send us a PR, we promise to take look!