Package restkit
[hide private]
[frames] | no frames]

Package restkit

source code


Version: 2.1.1

Submodules [hide private]

Functions [hide private]
 
request(url, method='GET', body=None, headers=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, filters=None, follow_redirect=False, force_follow_redirect=False, max_follow_redirect=5, pool_instance=None, response_class=None, **ssl_args)
Quick shortcut method to pass a request
source code
 
set_logging(level, handler=None)
Set level of logging, and choose where to display/save logs (file or standard output).
source code
Variables [hide private]
  LOG_LEVELS = {'critical': 50, 'debug': 10, 'error': 40, 'info'...
  __package__ = 'restkit'
  version_info = (2, 1, 1)
Function Details [hide private]

request(url, method='GET', body=None, headers=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, filters=None, follow_redirect=False, force_follow_redirect=False, max_follow_redirect=5, pool_instance=None, response_class=None, **ssl_args)

source code 

Quick shortcut method to pass a request

:param url: str, url string :param method: str, by default GET. http verbs :param body: the body, could be a string, an iterator or a file-like object :param headers: dict or list of tupple, http headers :pool intance: instance inherited from `restkit.pool.PoolInterface`. It allows you to share and reuse connections connections. :param follow_redirect: boolean, by default is false. If true, if the HTTP status is 301, 302 or 303 the client will follow the location. :param filters: list, list of http filters. see the doc of http filters for more info :param ssl_args: ssl arguments. See http://docs.python.org/library/ssl.html for more information.


Variables Details [hide private]

LOG_LEVELS

Value:
{'critical': 50, 'debug': 10, 'error': 40, 'info': 20, 'warning': 30}