Package restkit :: Package filters :: Module simpleproxy
[hide private]
[frames] | no frames]

Module simpleproxy

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"

Version: 2.2.1

Classes [hide private]
  ProxyError
  SimpleProxy
Simple proxy filter.
Functions [hide private]
 
_get_proxy_auth() source code
Variables [hide private]
  __package__ = 'restkit.filters'