Package restkit :: Module wrappers :: Class Response
[hide private]

Class Response

source code

object --+
         |
        Response

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

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)

source code 

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

Overrides: object.__init__
(inherited documentation)

tee(self)

source code 

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