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

ProxyBodyHandler rework #1187

Merged
merged 4 commits into from
Mar 25, 2022
Merged

Conversation

KalevGonvick
Copy link
Member

Overview

Changed approach for proxy body handler to use stream conduits instead of pooled buffers.

Detail

Adds a request wrapper that overwrites read to duplicate and split the request without consuming it from the source. We then parse the duplicated body. Cache the body if enabled in the config.

@KalevGonvick KalevGonvick requested a review from stevehu March 25, 2022 17:12
@stevehu stevehu merged commit 277bfec into master Mar 25, 2022
@stevehu stevehu deleted the feature/content-length-error-message branch March 25, 2022 19:52
@KalevGonvick KalevGonvick restored the feature/content-length-error-message branch March 30, 2022 15:38
younggwon1 pushed a commit to younggwon1/light-4j that referenced this pull request Feb 10, 2024
* reworked proxy body handler

* Cleaned up unused functions
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.

2 participants