Skip to content

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

@bodograumann bodograumann force-pushed the use-body-memo-in-proxy@642 branch from 9d65b96 to 61f9c8c Compare October 18, 2024 16:01
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