Skip to content

proxy-http: Box request bodies #2848

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

Merged
merged 1 commit into from
Mar 29, 2024
Merged

proxy-http: Box request bodies #2848

merged 1 commit into from
Mar 29, 2024

Conversation

olix0r
Copy link
Member

@olix0r olix0r commented Mar 29, 2024

The proxy HTTP server emits requests with an UpgradeBody type (as required by the server module that sets up HTTP CONNECT handling). We also wrap HTTP/2 requests in this body even though we do not currently support CONNECT over HTTP/2. The inbound and outbound server stacks then Box the request body so that the UpgradeBody type is hidden.

This commit moves the Box-ing of the request body into the HTTP server to reduce boilerplate.

This change sets up for additional HTTP server changes. There are no functional changes.

The proxy HTTP server emits requests with an UpgradeBody type (as required by
the server module that sets up HTTP CONNECT handling). We also wrap HTTP/2
requests in this body even though we do not currently support CONNECT over
HTTP/2. The inbound and outbound server stacks then Box the request body so that
the UpgradeBody type is hidden.

This commit moves the Box-ing of the request body into the HTTP server to reduce
boilerplate.

This change sets up for additional HTTP server changes. There are no functional
changes.
@olix0r olix0r requested a review from a team as a code owner March 29, 2024 01:21
@olix0r olix0r enabled auto-merge (squash) March 29, 2024 01:23
@olix0r olix0r merged commit 3551ee9 into main Mar 29, 2024
@olix0r olix0r deleted the ver/http-server-box branch March 29, 2024 01:29
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.

1 participant