Home | Trees | Indices | Help |
---|
|
object --+ | Resource
A class that can be instantiated for access to a RESTful resource, including authentication.
|
|||
response_class |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
charset =
|
|||
encode_keys = True
|
|||
safe =
|
|||
basic_auth_url = True
|
|
|||
Inherited from |
|
Constructor for a `Resource` object. Resource represent an HTTP resource. :param uri: str, full uri to the server. :param client_opts: `restkit.client.Client` Options
|
repr(x)
|
if you want to add a path to resource uri, you can do: .. code-block:: python resr2 = res.clone() |
if you want to add a path to resource uri, you can do: .. code-block:: python Resource("/path").get() |
HTTP GET :param path: string additionnal path to the uri :param headers: dict, optionnal headers that will be added to HTTP request. :param params: Optionnal parameterss added to the request. |
HTTP HEAD see GET for params description. |
HTTP DELETE see GET for params description. |
HTTP POST :param payload: string passed to the body of the request :param path: string additionnal path to the uri :param headers: dict, optionnal headers that will be added to HTTP request. :param params: Optionnal parameterss added to the request |
HTTP PUT see POST for params description. |
HTTP request This method may be the only one you want to override when subclassing `restkit.rest.Resource`. :param payload: string or File object passed to the body of the request :param path: string additionnal path to the uri :param headers: dict, optionnal headers that will be added to HTTP request. :params_dict: Options parameters added to the request as a dict :param params: Optionnal parameterss added to the request |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat Feb 9 17:17:56 2013 | http://epydoc.sourceforge.net |