Reverse proxy with HTTP2 support

2,030 views
Skip to first unread message

Piyush Dewnani

unread,
Mar 30, 2016, 5:48:11 AM3/30/16
to golang-nuts
The default reverse proxy at https://golang.org/pkg/net/http/httputil/#ReverseProxy has some hard-coded vars which uses http 1.1

For example: https://golang.org/src/net/http/httputil/reverseproxy.go#L178

Not sure about the changes targeted to support 'HTTP 2' out of the box for 'HTTP 2' enabled backend.

Kevin Klues

unread,
Jul 13, 2016, 2:12:51 PM7/13/16
to golang-nuts
Im curious about this as well. Are there any plans to build native support for a reverse proxy that can directly forward HTTP/2 traffic to a backend server? If not, does anyone know of a usable external project that provides this functionality?

Tim Hawkins

unread,
Jul 13, 2016, 2:18:48 PM7/13/16
to Kevin Klues, golang-nuts

https://github.com/containous/traefik

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tamás Gulácsi

unread,
Jul 14, 2016, 12:27:37 AM7/14/16
to golang-nuts

Piyush Dewnani

unread,
Jul 14, 2016, 3:07:53 AM7/14/16
to golang-nuts
I might be wrong here, but looking at the current code it seems that the HTTP version gets kind of hard-coded

https://github.com/mholt/caddy/blob/master/caddyhttp/proxy/reverseproxy.go#L166

On Thursday, July 14, 2016 at 9:57:37 AM UTC+5:30, Tamás Gulácsi wrote:
caddyserver.com

Piyush Dewnani

unread,
Jul 14, 2016, 3:11:30 AM7/14/16
to golang-nuts, klu...@gmail.com
The project indeed does look interesting, however it seems like it depends on MailGun proxy https://github.com/vulcand/oxy
I might be missing something here, but it seems atleast in Vulcand forward module the support for a HTTP2 backend is not present.
https://github.com/vulcand/oxy/blob/master/forward/fwd.go#L219
Reply all
Reply to author
Forward
0 new messages