SwitchFlow and nginx
To be frank, developing a full featured proxy server is a lot of work, and I under estimated the complexity of the problem. The complexity goes up significantly when using event driven I/O and restricted memcpy's (both of which nginx does). And with so many alternatives out there, I might have to chalk SwitchFlow up to a learning experience.
With that said, knowing a little about the domain, I decided to pull up the parser code. That's a big switch statement.