twisted.web.proxy.Proxy(HTTPChannel) class documentationtwisted.web.proxy
View Source
(View In Hierarchy)
This class implements a simple web proxy.
Since it inherits from twisted.web.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 TimeoutMixin (via HTTPChannel):
| Class Variable | timeOut | The number of seconds after which to timeout the connection. |
| Method | callLater | Wrapper around reactor.callLater for test purpose. |
| Method | resetTimeout | Reset the timeout count down. |
| Method | setTimeout | Change the timeout period |
| Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via HTTPChannel):
| Class Variable | timeOut | The number of seconds after which to timeout the connection. |
| Method | callLater | Wrapper around reactor.callLater for test purpose. |
| Method | resetTimeout | Reset the timeout count down. |
| Method | setTimeout | Change the timeout period |
| Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via HTTPChannel):
| Class Variable | timeOut | The number of seconds after which to timeout the connection. |
| Method | callLater | Wrapper around reactor.callLater for test purpose. |
| Method | resetTimeout | Reset the timeout count down. |
| Method | setTimeout | Change the timeout period |
| Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via HTTPChannel):
| Class Variable | timeOut | The number of seconds after which to timeout the connection. |
| Method | callLater | Wrapper around reactor.callLater for test purpose. |
| Method | resetTimeout | Reset the timeout count down. |
| Method | setTimeout | Change the timeout period |
| Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via HTTPChannel):
| Class Variable | timeOut | The number of seconds after which to timeout the connection. |
| Method | callLater | Wrapper around reactor.callLater for test purpose. |
| Method | resetTimeout | Reset the timeout count down. |
| Method | setTimeout | Change the timeout period |
| Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via HTTPChannel):
| Class Variable | timeOut | The number of seconds after which to timeout the connection. |
| Method | callLater | Wrapper around reactor.callLater for test purpose. |
| Method | resetTimeout | Reset the timeout count down. |
| Method | setTimeout | Change the timeout period |
| Method | __timedOut | Undocumented |