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

Stabilize Deno.upgradeHttp? #21384

Closed
imcotton opened this issue Nov 29, 2023 · 4 comments
Closed

Stabilize Deno.upgradeHttp? #21384

imcotton opened this issue Nov 29, 2023 · 4 comments
Labels
ext/http related to ext/http

Comments

@imcotton
Copy link

It was introduced on 1.20.1 / 2022.03.16 1, any stories left from moving it into stable?

Thanks.

Footnotes

  1. https://github.com/denoland/deno/blob/ae327d0a83be3ad56d42cad7db0b15ae8e853f06/Releases.md?plain=1#L2197

@crowlKats
Copy link
Member

Since we have Deno.serve, whats the usecase you have for Deno.upgradeHttp?

@crowlKats crowlKats added the ext/http related to ext/http label Nov 30, 2023
@imcotton
Copy link
Author

imcotton commented Nov 30, 2023

My use case is for standard CONNECT proxy server along with Deno.listen / Deno.listenTls, learnt from #11744.

Haven't tried Deno.serve for the same task yet, not sure it's sufficient for this job tho.

@mmastrac
Copy link
Contributor

mmastrac commented Jan 9, 2024

I looked into this briefly and I believe the upgradeHttp and upgradeHttpRaw API is not currently suitable for CONNECT. These are designed for use with websockets and node.js emulation as they assume an HTTP transaction is completed by whoever writes to the returned connection.

I think it is probably more suitable if we develop a Deno.upgradeConnect method that works for HTTP/1 and HTTP/2.

@mmastrac
Copy link
Contributor

mmastrac commented Jan 9, 2024

This API was never really designed for use with anything other than node.js compatibility, so we're likely just going to make it internal only.

Closing this in favour of a dedicated CONNECT API RFC -- please feel free to comment on it: #21870

@mmastrac mmastrac closed this as completed Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ext/http related to ext/http
Projects
None yet
Development

No branches or pull requests

3 participants