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

Allow proxy middleware to reuse body from memo #679

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

bodograumann
Copy link
Contributor

When the body is consumed, it is still available in the #memo private property. All the possible types there are a match for BodyInit. So there is nothing preventing us from using it directly in the proxy middleware.

Resolves #642

Copy link
Collaborator

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for the contribution!

@kitsonk kitsonk merged commit d33e9d5 into oakserver:main Oct 24, 2024
5 checks passed
@bodograumann bodograumann deleted the use-body-memo-in-proxy@642 branch October 25, 2024 09:03
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.

Use body and relay it via proxy middleware in oak v13+
2 participants