I have an existing library which I am adapting to use the new HttpClient in .NET 4.5. The library allows sending HTTP requests with differing configuration options for all requests i.e. properties like Timeout, AllowAutoRedirect and Proxy can be set differently.
This was relatively easy with HttpWebRequest, but that had its own issues (Like annoying restricted headers).
To my understanding, properties such as these must now be set in a HttpRequestHandler and passed onto the HttpClient constructor; And the HttpClient is designed to be reused across the entire application.
How could I set my requests up such that this would be possible?
 
    