simple_proxy-1.0.1 has been yanked.
Simple proxy
Usage
extern crate simple_proxy;
use Auth;
use ;
use SimpleProxy;
Custom middleware
You can create your custom middleware by creating a struct implementing Middleware, consisting of 4 callbacks:
before_request
will be run every timerequest_failure
will be run when the request failsrequest_success
will be run when the request succeeds, you can then handle the response according to the status code or the bodyafter_request
will be run every time