Package dpkt :: Module http :: Class Response
[hide private]
[frames] | no frames]

Class Response

source code

 object --+        
          |        
dpkt.Packet --+    
              |    
        Message --+
                  |
                 Response
Known Subclasses:

Hypertext Transfer Protocol Response.

Nested Classes [hide private]

Inherited from Message: __metaclass__

Instance Methods [hide private]
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code
 
__str__(self)
str(x)
source code

Inherited from Message: __init__, __len__, pack_hdr

Inherited from dpkt.Packet: __getitem__, __repr__, pack

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __hdr_defaults__ = {'reason': 'OK', 'status': '200', 'version'...
  __proto = 'HTTP'

Inherited from Message: body, headers

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

unpack(self, buf)

source code 
Unpack packet header fields from buf, and set self.data.

Overrides: dpkt.Packet.unpack
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

__hdr_defaults__

Value:
{'reason': 'OK', 'status': '200', 'version': '1.0'}