Class t.w.p.Proxy(http.HTTPChannel):

Part of twisted.web.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.web 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!

Inherited from LineReceiver (via HTTPChannel):

Method clearLineBuffer Clear buffered data.
Method dataReceived Protocol.dataReceived.
Method setLineMode Sets the line-mode of this receiver.
Method setRawMode Sets the raw mode of this receiver.
Method sendLine Sends a line to the other end of the connection.
Method lineLengthExceeded Called when the maximum line length has been reached.

Inherited from BaseProtocol (via HTTPChannel, LineReceiver, Protocol):

Method makeConnection Make a connection to a transport and a server.

Inherited from _PauseableMixin (via HTTPChannel, LineReceiver):

Method pauseProducing Undocumented
Method resumeProducing Undocumented
Method stopProducing Undocumented

Inherited from TimeoutMixin (via HTTPChannel):

Method callLater Undocumented
Method resetTimeout Reset the timeout count down
Method setTimeout Change the timeout period
Method __timedOut Undocumented
API Documentation for twisted, generated by pydoctor.