Skip to content

Add proxy configuration support to Frends.HTTP.Request#54

Merged
MichalFrends1 merged 3 commits into
FSPES-115from
copilot/add-proxy-support-frends-http-request
May 7, 2026
Merged

Add proxy configuration support to Frends.HTTP.Request#54
MichalFrends1 merged 3 commits into
FSPES-115from
copilot/add-proxy-support-frends-http-request

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 7, 2026

This adds proxy support to Frends.HTTP.Request by exposing proxy URL and credentials in task options and wiring them into the underlying HTTP handler. It also updates client caching so proxy-specific clients are not reused across incompatible configurations.

  • Proxy options

    • Added ProxyUrl, ProxyUsername, and ProxyPassword to request options.
    • Keeps proxy configuration explicit at the task level instead of relying on ambient machine settings.
  • HTTP handler configuration

    • Configures HttpClientHandler.Proxy and enables proxy usage when ProxyUrl is provided.
    • Applies proxy credentials when ProxyUsername is set.
  • HttpClient cache isolation

    • Extends the HTTP client cache key with proxy settings so cached clients are separated by proxy configuration.
    • Hashes the proxy password in the cache key rather than embedding the raw secret.
  • Versioning and release notes

    • Bumps the package version from 1.10.0 to 1.11.0.
    • Adds a changelog entry describing proxy support.
  • Coverage

    • Adds unit coverage for proxy handler setup.
    • Adds unit coverage ensuring proxy settings affect the cache key without exposing the raw password.
var options = new Options
{
    ProxyUrl = "http://proxy.example.com:8080",
    ProxyUsername = "proxy-user",
    ProxyPassword = "proxy-password"
};

Copilot AI and others added 3 commits May 7, 2026 06:16
Agent-Logs-Url: https://github.com/FrendsPlatform/Frends.HTTP/sessions/a1252305-c656-43df-8134-1b178943ee96

Co-authored-by: MichalFrends1 <167774394+MichalFrends1@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FrendsPlatform/Frends.HTTP/sessions/a1252305-c656-43df-8134-1b178943ee96

Co-authored-by: MichalFrends1 <167774394+MichalFrends1@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FrendsPlatform/Frends.HTTP/sessions/a1252305-c656-43df-8134-1b178943ee96

Co-authored-by: MichalFrends1 <167774394+MichalFrends1@users.noreply.github.com>
@MichalFrends1 MichalFrends1 marked this pull request as ready for review May 7, 2026 06:44
@MichalFrends1 MichalFrends1 merged commit 482e4d3 into FSPES-115 May 7, 2026
4 checks passed
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.

2 participants