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 from 80f2813 to 016da43 Compare July 14, 2026 08:27
@junliurs
junliurs force-pushed the feat/client-follow-redirects branch 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 98.09069% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.60%. Comparing base (ce5c0b6) to head (a49fc6a).

Files with missing lines Patch % Lines
volo-http/src/client/layer/redirect.rs 97.85% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #653      +/-   ##
==========================================
+ Coverage   46.20%   47.60%   +1.40%     
==========================================
  Files         163      164       +1     
  Lines       20307    20726     +419     
==========================================
+ Hits         9382     9866     +484     
+ Misses      10925    10860      -65     

☔ 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.

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.

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