Skip to content

feat(volo-http client): add redirect-following support - #653

Open
junliurs wants to merge 1 commit into
mainfrom
feat/client-follow-redirects
Open

feat(volo-http client): add redirect-following support#653
junliurs wants to merge 1 commit into
mainfrom
feat/client-follow-redirects

Conversation

@junliurs

Copy link
Copy Markdown
Contributor

Motivation

Solution

@junliurs
junliurs requested review from a team July 13, 2026 06:13
@junliurs
junliurs force-pushed the feat/client-follow-redirects branch 2 times, most recently from 016da43 to a49fc6a Compare July 15, 2026 04:11
@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.72727% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.82%. Comparing base (ce5c0b6) to head (792d550).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
volo-http/src/client/layer/redirect.rs 97.48% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #653      +/-   ##
==========================================
+ Coverage   46.20%   47.82%   +1.62%     
==========================================
  Files         163      164       +1     
  Lines       20307    20791     +484     
==========================================
+ Hits         9382     9943     +561     
+ Misses      10925    10848      -77     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread volo-http/src/client/layer/redirect.rs Outdated
type Error = ClientError;

async fn call(&self, cx: &mut ClientContext, req: Request<B>) -> Result<Self::Response> {
if !self

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing check if self.max_redirects == 0. if max_redirects is 0, it should return the redirect response as is.

@junliurs
junliurs force-pushed the feat/client-follow-redirects branch from a49fc6a to 792d550 Compare July 20, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants