h11
h11 is an open-source, pure-Python implementation of the HTTP/1.1 protocol state machine. It provides a lightweight, event-driven interface for encoding and decoding HTTP/1.1 messages in accordance with RFC 7230 through RFC 7235. The library is designed to be a building block rather than a full networking stack, focusing on correctness and robustness.
h11 exposes a Connection object that can operate in either client or server mode. The library translates
As a protocol engine, h11 does not perform socket I/O or concurrency control. Applications integrate h11 with
h11 implements HTTP/1.1 only and does not provide HTTP/2 support or TLS functionality. It is intended for