http2_tile_demo

command module
v0.0.0-...-4055381 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 12 Imported by: 0

README

HTTP/2 Tile Demo

HTTP/2 speed test demo. Tries to load a bunch of images via HTTP/2 or HTTP/1.

Running Locally:

  1. ./gen_keys.sh to generate cert/key for the HTTPS + HTTP/2 server. Requires openssl. Set the subject name to localhost.
  2. go build
  3. PORT=8080 PROTO=h2 ./http2_tile_demo to serve HTTP/2 over TLS
  4. PORT=8080 PROTO=h2c ./http2_tile_demo to serve HTTP/2 without TLS
  5. PORT=8080 PROTO=http1 ./http2_tile_demo to serve HTTP/1.1 without TLS

Running On Cloud Foundry:

  1. cf push -f manifest.yml --var domain=<your domain here>. This will deploy a HTTP/1 and HTTP/2 (H2C) version of the demo.
  2. Visit https://h2c.<your domain here> for the HTTP/2 version
  3. Visit http://http1.<your domain here> for the HTTP/1 version

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL