I want a high-performance HTTP(S) proxy which can examine and examine/replace the Authorization headers on request and the WWW-Authenticate [login to view URL] should call customisable functions for each of those stages. It needs to be able to present a valid X.509 certificate for incoming HTTPS traffic.
The proxy needs to be able to handle multiple IP addresses and URLs and dispatch correctly.
It needs to be resilient, so that it times-out failed requests and releases resources.
It should handle file uploads & downloads correctly and transparently.
All the source needs to be properly commented in good English.
It needs to be written in Rust.