I'm looking to build an intelligent reverse http proxy capable of routing, header examination and enrichment (eg. examine and build cookies and http headers), and various other fanciness. For a general idea of what I'm looking to build see Ruby Proxies for Scale and Monitoring - except in Python.
I realize that Twisted is an exceedingly good answer for this, and that eventmachine was inspired by Twisted, but I'm looking for something other than Twisted.
Ideally a library or package that includes http proxying capabilities I could modify with my own little plugins.
I remember seeing something based on eventlib that had http server capabilities built in, but I can't seem to find it.
I'm also taking a deep look at perlbal; that looks almost like the perfect solution, except it's in Perl.
Any recommendations?