Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use proxy if configured in HttpClient settings ✨ #8945

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ivandrofly
Copy link
Member

@ivandrofly ivandrofly commented Oct 25, 2024

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.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
@ivandrofly ivandrofly changed the title Use proxy if configured in HttpClient settings Use proxy if configured in HttpClient settings ✨ Oct 26, 2024
# Conflicts:
#	src/ui/Forms/Tts/TextToSpeech.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant