This commit refactors the application's HTTP client creation to utilize a custom HttpClient factory, ensuring that all HTTP requests respect any proxy settings specified in the configuration.
Key changes:
A custom HttpClient creation method is introduced, which includes proxy settings if configured.
The DownloaderFactory class has been renamed to HttpClientFactory to accurately reflect its purpose.
Direct HttpClient instantiations have been systematically replaced with calls to HttpClientFactory.CreateProxiedHttpClient.
This refactor enhances the maintainability and configurability of HTTP requests within the application, promoting a more robust and adaptable architecture.
This commit refactors the application's HTTP client creation to utilize a custom
HttpClient
factory, ensuring that all HTTP requests respect any proxy settings specified in the configuration.Key changes:
HttpClient
creation method is introduced, which includes proxy settings if configured.DownloaderFactory
class has been renamed toHttpClientFactory
to accurately reflect its purpose.HttpClient
instantiations have been systematically replaced with calls toHttpClientFactory.CreateProxiedHttpClient
.This refactor enhances the maintainability and configurability of HTTP requests within the application, promoting a more robust and adaptable architecture.