
mse6 is a http server implementing mock responses for testing of edge cases, such as slow writes.


Features
- Configurable HTTP/1.1 port
- Configurable wait time for slow responses
Routes
/mse6/die
kills the server process without sending a response
/mse6/get
standard json response with status code 200
/mse6/post
standard json response with status code 200
sends headers but only after waiting for 3 seconds. Configure with -wait on cli
/mse6/slowbody
sends body after initial lag, then sends some more body without chunking. Configure with -wait on cli
/mse6/badcontentlength
sends invalid content length header, too large for response
/mse6/send?code=nnn
sends arbitrary response code between 100 and 999
/mse6/gzip
sends a gzipped response with proper content encoding
/mse6/badgzip
sends a response gzip content encoding header and garbled binary
Up and running
Osx
brew tap simonmittag/cli &&
brew install mse6 &&
mse6
Golang
go get github.com/simonmittag/mse6 &&
go install github.com/simonmittag/mse6/cmd/mse6 &&
mse6
Usage
λ mse6 -help
Usage of mse6:
-port int
the http port (default 8080)
-test
server self test
-wait int
wait time for server to respond in seconds (default 3)
Contributions
The mse6 team welcomes all contributors. Everyone interacting with the project's codebase, issue trackers, chat rooms and mailing lists
is expected to follow the code of conduct