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

Add Proxy Support for Reddit Requests #77

Merged
merged 5 commits into from
Aug 8, 2024
Merged

Add Proxy Support for Reddit Requests #77

merged 5 commits into from
Aug 8, 2024

Commits on Jun 6, 2024

  1. Implement proxy support for Reddit requests (#75)

    This commit introduces proxy support for Reddit requests within the ASFFreeGames plugin, addressing issues #75 #76.
    
    Users can now configure proxies for both general and Reddit-specific connections through the Proxy and RedditProxy settings in ASFFreeGamesOptions.cs.
    
    Key changes:
    
    - ASFFreeGamesOptions.cs: Added properties Proxy and RedditProxy to support proxy configuration for general and Reddit connections respectively.
    - ASFFreeGamesOptionsLoader.cs: Updated to load proxy settings from configuration and environment variables.
    - FreeGamesCommand.cs: Modified GetGames to utilize SimpleHttpClientFactory and its CreateForReddit method, enabling the use of the configured Reddit proxy.
    - RedditHelper.cs: Replaced WebBrowser usage with SimpleHttpClient for Reddit communication, allowing proxy support.
    
    These improvements enhance the plugin's flexibility by allowing users to leverage proxy servers for Reddit interactions.
    maxisoft committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    95f9db5 View commit details
    Browse the repository at this point in the history
  2. * Introduced HandleTooManyRequest method to gracefully handle rate …

    …limiting from Reddit.
    
    * Added checks for remaining rate limit and reset time to implement appropriate delays based on Reddit's response headers.
    maxisoft committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    2c319ca View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2024

  1. Add more custom headers

    GetStreamAsync() internal request object use configured http version
    maxisoft committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    1db9d01 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. Configuration menu
    Copy the full SHA
    b3ec522 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8984b36 View commit details
    Browse the repository at this point in the history