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

chore(volo-http): support Body::from_body with any error #371

Merged
merged 3 commits into from
Feb 21, 2024

Conversation

yukiiiteru
Copy link
Member

Motivation

The previous Body::from_body can only accept Body::Error = BoxError, which is not flexible.

Solution

Use http_body_util::combinators::MapErr for converting error to BoxError.

@yukiiiteru yukiiiteru requested review from a team as code owners February 21, 2024 08:11
@yukiiiteru yukiiiteru merged commit 88d0e03 into cloudwego:main Feb 21, 2024
13 checks passed
@yukiiiteru yukiiiteru deleted the chore/fix branch February 21, 2024 08:32
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