t.w.p.Proxy(http.HTTPChannel) : class documentation

Part of twisted.web2.proxy View Source View In Hierarchy

This class implements a simple web proxy.

Since it inherits from twisted.protocols.http.HTTPChannel, to use it you should do something like this:
   from twisted.web2 import http
   f = http.HTTPFactory()
   f.protocol = Proxy
Make the HTTPFactory a listener on a port as per usual, and you have a fully-functioning web proxy!
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:12:41.