Listens on https port 7143
and will response back whatever is hosted in nginx
on that path.
- docker compose
- nghttp2
nghttp2 is an implementation of HTTP/2 client.
brew install nghttp2
To start
the Docker Compose stack defined in the compose.yaml file, use:
docker compose up -d
nghttp -ansy https://localhost:7143/demo.html
output:
***** Statistics *****
Request timing:
responseEnd: the time when last byte of response was received
relative to connectEnd
requestStart: the time just before first byte of request was sent
relative to connectEnd. If '*' is shown, this was
pushed by server.
process: responseEnd - requestStart
code: HTTP status code
size: number of bytes received as response body without
inflation.
URI: request URI
see http://www.w3.org/TR/resource-timing/#processing-model
sorted by 'complete'
id responseEnd requestStart process code size request path
13 +921.19ms +146us 921.05ms 200 320 /demo.html
2 +923.02ms * +912.81ms 10.21ms 200 89 /style.css
you get /style.css
response as push promise that nginx is configured with.
To remove any resources created by the Docker Compose stack, use:
docker compose down