wrappers Module¶
-
class
restkit.wrappers.BodyWrapper(resp, connection)¶ Bases:
object-
close()¶ release connection
-
next()¶
-
read(n=-1)¶
-
readline(limit=-1)¶
-
readlines(hint=None)¶
-
-
class
restkit.wrappers.Request(url, method='GET', body=None, headers=None)¶ Bases:
object-
body¶ request body
-
headers¶
-
host¶
-
is_chunked()¶
-
is_ssl()¶
-
maybe_rewind(msg='')¶
-
parsed_url¶ parsed url
-
path¶
-
-
class
restkit.wrappers.Response(connection, request, resp)¶ Bases:
object-
body_stream()¶ stream body
-
body_string(charset=None, unicode_errors='strict')¶ return body string, by default in bytestring
-
can_read()¶
-
charset= 'utf8'¶
-
close()¶
-
skip_body()¶ skip the body and release the connection
-
tee()¶ 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
-
unicode_errors= 'strict'¶
-