h2a is a debugging reverse proxy for HTTP/2 developers.
This can be a great tool to dump h2 frames between client and server.
Go to the releases page, find the version you want, and download the zip file.
- Make sure you have Go 1.5 and set GOPATH appropriately
- Run
go get github.com/summerwind/h2a
It is also possible to build specific version.
- Make sure you have Go 1.5 and set GOPATH appropriately
- Run
go get gopkg.in/summerwind/h2a.v1
Usage: h2a [OPTIONS]
Options:
-p: Port (Default: 443)
-i: IP Address (Default: 127.0.0.1)
-d: Use HTTP/2 direct mode
-P: Origin port
-H: Origin host
-D: Use HTTP/2 direct mode to connect origin
-c: Certificate file
-k: Certificate key file
-o: Output log format (default or json, Default: default)
--version: Display version information and exit.
--help: Display this help and exit.
This screenshot shows the h2 frames between H2O and Safari 9.