badservice

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

README

badservice

Helps you test how resilient you are generating bad HTTP responses.

Listening port

By default, badservice binds to 0.0.0.0:6666

This value can be changed setting BADSERVICE_BINDADDR environment variable to one of your preference.

Status Code

/badservice/status/:code Will response a code HTTP status code.

e.g.: /badservice/status/503 Will response a 503 HTTP status code.

Connection Delay

/badservice/delay/:delay Will response a 200 status code after delay milliseconds.

e.g.: /badservice/delay/10000 Will wait 10 seconds.

Connection Drop

/badservice/drop Will accept your request, but also will drop the TCP connection.

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