Skip to content

Conversation

devsnek
Copy link
Member

@devsnek devsnek commented Sep 19, 2025

expose upgradeHttpRaw and maintain upgraded requests through fetch+Deno.serve.

if (nullBodyStatus(response.status)) {
if (req.client?.allowUpgrades && response.status === 101) {
response.body = new InnerBody(
createResponseBodyStream(resp.responseRid, terminator),
Copy link
Member Author

Choose a reason for hiding this comment

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

need to come up with a way to avoid creating a readable stream here

@devsnek devsnek force-pushed the better-upgrades-2 branch 2 times, most recently from 0b3ffb6 to b51cbe8 Compare September 19, 2025 21:27
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