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

x/net/http2: ability to access raw HTTP/2 stream #34874

Open
JensRantil opened this issue Oct 13, 2019 · 3 comments

Comments

@JensRantil
Copy link

@JensRantil JensRantil commented Oct 13, 2019

I am interested in creating a HTTP proxy (note: not a reverse proxy) in Go. I'm only interested in implementing the CONNECT method. All other methods are irrelevant for me. https://github.com/elazarl/goproxy comes very close to what I want to do, but I'm also interested in supporting CONNECT when client is connected to proxy using HTTP/2. AFAIK, according to RFC7540, CONNECT over HTTP/2 should work by hijacking the stream and do TCP tunneling over it.

*http2responseWriter does not implement http.Hijacker. One idea, would be that it implements http.Hijacker which will give access not to the underlying TCP connection but rather the HTTP stream.

...or is there any other approach I could take without having to implement low-level HTTP/2 stuff?

@agnivade

This comment has been minimized.

Copy link
Contributor

@agnivade agnivade commented Oct 13, 2019

Hello @JensRantil, unlike other projects, we do not use the issue tracker for questions such as these. It is only used for bugs and feature proposals. I will close this issue, but please feel free to ask it in any of these forums below:

Thanks

@agnivade agnivade closed this Oct 13, 2019
@JensRantil

This comment has been minimized.

Copy link
Author

@JensRantil JensRantil commented Oct 13, 2019

@agnivade Maybe I should have phrased it differently, then. See this as a feature request being able to access a raw stream in HTTP/2.

@agnivade

This comment has been minimized.

Copy link
Contributor

@agnivade agnivade commented Oct 13, 2019

Ok.

@bradfitz

@agnivade agnivade reopened this Oct 13, 2019
@agnivade agnivade changed the title Be able to access raw HTTP/2 stream x/net/http2: ability to access raw HTTP/2 stream Oct 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.