Nikey646 / VndbSharp

A C# Vndb API Library. #OriginalNamingScheme
MIT License
18 stars 4 forks source link

Add a way to allow the end user to construct the HttpClient #21

Closed Nikey646 closed 7 years ago

Nikey646 commented 7 years ago

Sometimes an end user may need to customize the way the HttpClient works, due to weird configuration issues such as a proxy making it the HttpClient behave oddly, so a method that accepts a factory to create the HttpClient in VndbUtils would be useful to have around.

The method signature might look like public static void WithHttpHandlerFactory(Func<Task<HttpMessageHandler>> callback)