| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
Resource
A class that can be instantiated for access to a RESTful resource, including authentication.
|
|||
|
response_class Http Response object returned by HttpConnction |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
charset =
|
|||
encode_keys = True
|
|||
safe =
|
|||
keepalive = True
|
|||
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.HttpRequest` 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.
:param params: Optionnal parameterss added to the request
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Sat Sep 18 19:22:52 2010 | http://epydoc.sourceforge.net |