eranchetz / whs

Wait HTTP Server | An HTTP Server that holds the request hostage for n seconds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

whs

Wait HTTP Server | An HTTP Server that holds the request hostage for n seconds

defaults

  • wait = 0s
  • ignore-sigterm = true

Run

docker run -ti --rm  -p 8080:8080 eranchetz/whs -wait 2 -ignore-sigterm false

Use

curl localhost:8080/?wait=750ms

wait is parsed by these rules

About

Wait HTTP Server | An HTTP Server that holds the request hostage for n seconds

License:MIT License


Languages

Language:Go 96.2%Language:Dockerfile 3.8%