restkit :: wrappers :: Response :: Class Response
[hide private]
[frames] | no frames]

Class Response

object --+
         |
        Response
Known Subclasses:

Instance Methods [hide private]
 
__contains__(self, key)
 
__getitem__(self, key)
 
__init__(self, connection, request, resp)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__iter__(self)
 
body_stream(self)
stream body
 
body_string(self, charset=None, unicode_errors='strict')
return body string, by default in bytestring
 
can_read(self)
 
tee(self)
copy response input to standard output or a file if length > sock.MAX_BODY.

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

Class Variables [hide private]
  charset = 'utf8'
  unicode_errors = 'strict'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, connection, request, resp)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

tee(self)

 

copy response input to standard output or a file if length > sock.MAX_BODY. This make possible to reuse it in your appplication. When all the input has been read, connection is released