http-server

command
v0.0.0-...-e48efe8 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

Traffic Quota Example HTTP Server

Running trafficquotad on localhost:3895, start this server:

go run .

And open another terminal:

# 20 (or little more) requests are accepted at default.
# And other requests are rejected by the burst limit.
ab -c100 -n100 http://localhost:8080/
# Each request is accepted because these are in the rate limit.
watch -n0.1 ab -c10 -n10 http://localhost:8080/
# 9 (or little less) reqests will exceed the rate limit.
watch -n0.1 ab -c20 -n20 http://localhost:8080/

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