Package filters
source code
filters - Http filters
Http filters are object used before sending the request to the server
and after. The `HttpClient` instance is passed as argument.
An object with a method `on_request` is called just before the
request. An object with a method `on_response` is called after fetching
response headers.
ex:
class MyFilter(object):
def on_request(self, http_client):
"do something with/to http_client instance"
def on_response(self, http_client):
"do something on http_client and get response infos"
|
__package__ = ' restkit.filters '
|