Skip to content

cloudfoundry-samples/http2_tile_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published