Fspes 115#55
Conversation
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>
…frends-http-request Add proxy configuration support to Frends.HTTP.Request
|
Warning Rate limit exceeded
To continue reviewing without waiting, purchase usage credits in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
WalkthroughThis PR adds HTTP proxy support with URL, username, and password configuration options. The proxy handler is conditionally configured when a proxy URL is supplied, with credentials applied when credentials are provided. Proxy password is securely hashed in the HTTP client cache key to avoid embedding secrets. Two new unit tests validate proxy handler setup and cache key differentiation. ChangesHTTP Proxy Configuration Support
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Frends.HTTP.Request/Frends.HTTP.Request.Tests/UnitTests.cs`:
- Around line 438-461: Extend the HttpClientCacheKeyShouldIncludeProxyOptions
test to also verify that when two Options instances differ only in ProxyPassword
the resulting cache keys from HTTP.GetHttpClientCacheKey are different and that
neither key contains the plain ProxyPassword; create a third Options (e.g.,
optionsWithProxyDifferentPassword) copying optionsWithProxy but changing
ProxyPassword, invoke the private static method via reflection to get its cache
key, and add assertions that keyWithProxy != keyWithProxyDifferentPassword and
that keyWithProxyDifferentPassword does not contain the raw password string.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 173e50d5-9914-4ee3-80d0-bc483fc3e095
📒 Files selected for processing (6)
Frends.HTTP.Request/CHANGELOG.mdFrends.HTTP.Request/Frends.HTTP.Request.Tests/UnitTests.csFrends.HTTP.Request/Frends.HTTP.Request/Definitions/Options.csFrends.HTTP.Request/Frends.HTTP.Request/Extensions.csFrends.HTTP.Request/Frends.HTTP.Request/Frends.HTTP.Request.csprojFrends.HTTP.Request/Frends.HTTP.Request/Request.cs
|
do we want to add same option to other http tasks? |
Please review my changes :)
Task Update PR template
Review Checklist
Summary by CodeRabbit
New Features
Other Changes