Skip to content

Commit 3fdb615

Browse files
committed
Update README
1 parent e49e7f1 commit 3fdb615

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ Support for weighting those pushes is not yet implemented.
3535
Since HTTP/2 requires TLS, `simplehttp2server` checks if `cert.pem` and
3636
`key.pem` are present. If not, a self-signed certificate will be generated.
3737

38+
# Delays
39+
40+
`simplehttp2server` can add artifical delays to responses to emulate processing
41+
time. The command line flags `-mindelay` and `-maxdelay` allow you to delay
42+
responses with a random delay form the interval `[minDelay, maxDelay]`.
43+
44+
If a request has a `delay` query parameter (like `GET /index.html?delay=4000`),
45+
that delay will take precedence.
46+
3847
# Download
3948

4049
`simplehttp2server` is `go get`-able:

0 commit comments

Comments
 (0)