Home | Trees | Index | Help |
---|
Package twisted :: Package web :: Module proxy :: Class Proxy |
|
BaseProtocol
--+ |Protocol
--+ |LineReceiver
--+ |TimeoutMixin
--+ |HTTPChannel
--+ | Proxy
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.protocols import http f = http.HTTPFactory() f.HTTPChannel = ProxyMake the HTTPFactory a listener on a port as per usual, and you have a fully-functioning web proxy!
Method Summary | |
---|---|
__init__(self)
(inherited from HTTPChannel )
| |
allContentReceived(self)
(inherited from HTTPChannel )
| |
allHeadersReceived(self)
(inherited from HTTPChannel )
| |
Check if the channel should close or not. (inherited from HTTPChannel )
| |
Clear buffered data. (inherited from LineReceiver )
| |
(Deprecated) (inherited from Protocol )
| |
Called when the connection is shut down. (inherited from HTTPChannel )
| |
Called when a connection is made. (inherited from HTTPChannel )
| |
Protocol.dataReceived. (inherited from LineReceiver )
| |
Do pre-processing (for content-length) and store this header away. (inherited from HTTPChannel )
| |
Called when the maximum line length has been reached. (inherited from LineReceiver )
| |
Override this for when each line is received. (inherited from HTTPChannel )
| |
Make a connection to a transport and a server. (inherited from BaseProtocol )
| |
Override this for when raw data is received. (inherited from HTTPChannel )
| |
Called by first request in queue when it is done. (inherited from HTTPChannel )
| |
Reset the timeout count down (inherited from TimeoutMixin )
| |
Sends a line to the other end of the connection. (inherited from LineReceiver )
| |
Sets the line-mode of this receiver. (inherited from LineReceiver )
| |
Sets the raw mode of this receiver. (inherited from LineReceiver )
| |
Change the timeout period (inherited from TimeoutMixin )
| |
Called when the connection times out. (inherited from HTTPChannel )
| |
_TimeoutMixin__timedOut(self)
(inherited from TimeoutMixin )
|
Class Variable Summary | |
---|---|
class |
ProxyRequest
|
Class Variable Details |
---|
ProxyRequestProxyRequest = twisted.web.proxy.ProxyRequest
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Fri Jun 27 03:49:02 2003 | http://epydoc.sf.net |