request(url,
method=' GET ' ,
body=None,
headers=None,
pool_instance=None,
follow_redirect=False,
filters=None,
key_file=None,
cert_file=None)
| 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 key_file: the key fle to use with ssl :param cert_file: the
cert file to use with ssl
|