This is a demo of HTTP/2 Push with Go 1.8 performed in a live coding session during the release party.
- Go 1.8
- OpenSSL
First of all, generate the certificate for the TLS connection:
$ ./gen_cert.sh
Now, launch the following command:
$ go run demo.go
Then, open your favourite browser and type https://localhost:3001
in the address bar.
Serving the slideshow can be achived with present:
$ present
Then, again open your browser and type http://127.0.0.1:3999
.
There you go!