The standard library's http.Server supports HTTP/2, but only for tls.Conn. This doesn't work when serving connections behind a reverse proxy which terminates TLS and uses the PROXY protocol.
Supporting this requires some glue code, which the new helper provides.
coverage: 95.017%. remained the same when pulling 5343f12c907a1531b8361b5c94a81bd3679d0011 on emersion:h2 into 864358a1e7a141febccde06762a1643bf872ff80 on pires:main.
The standard library's http.Server supports HTTP/2, but only for tls.Conn. This doesn't work when serving connections behind a reverse proxy which terminates TLS and uses the PROXY protocol.
Supporting this requires some glue code, which the new helper provides.
The example was tested with tlstunnel.
Closes: https://github.com/pires/go-proxyproto/issues/90