h11

A pure-Python, bring-your-own-I/O implementation of HTTP/1.1

Here are some articles that you may find helpful