Package Honey :: Package Fakes :: Package HTTP :: Module base_http :: Class FakeHTTP
[show private | hide private]
[frames | no frames]

Class FakeHTTP

  object --+            
           |            
BaseProtocol --+        
               |        
     RawProtocol --+    
                   |    
        LineProtocol --+
                       |
                      FakeHTTP


Define the HTTP Protocol
Method Summary
a new object with type S, a subtype of T __new__(S, ...)
  connectionEstablished(self)
Callback called when the connection is established
  connectionLost(self)
Callback called when the connection is lost
  dataReceived(self, data)
Process received data into lines (inherited from LineProtocol)
  do_ERROR(self, action, **kwds)
  do_GET(self, url, version)
  do_HEAD(self)
  do_POST(self)
  getMethods(self, version)
  headerReceived(self, line)
  lineLengthExceeded(self, line)
Callback called when a line exceeeds max length (inherited from LineProtocol)
  lineReceived(self, line)
Callback
  processRequest(self)
  rawDataReceived(self, data)
Callback (inherited from LineProtocol)
  requestReceived(self, line)
  sendline(self, line)
Send a line. (inherited from LineProtocol)
  setLineMode(self, extra)
Enter line mode (inherited from LineProtocol)
  setRawMode(self)
Enter Raw mode (inherited from LineProtocol)

Class Variable Summary
bool finished
int length
NoneType request

Method Details

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

connectionEstablished(self)

Callback called when the connection is established
Overrides:
Honey.Protocol.BaseProtocol.connectionEstablished (inherited documentation)

connectionLost(self)

Callback called when the connection is lost
Overrides:
Honey.Protocol.BaseProtocol.connectionLost (inherited documentation)

lineReceived(self, line)

Callback

Should be overriden
Overrides:
Honey.Protocol.LineProtocol.lineReceived (inherited documentation)

Class Variable Details

finished

Type:
bool
Value:
False                                                                  

length

Type:
int
Value:
0                                                                      

request

Type:
NoneType
Value:
None                                                                   

Generated by Epydoc 1.1 on Sun Dec 7 16:05:59 2003 http://epydoc.sf.net