badhttp

command module
v0.0.0-...-8e0c8e1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

README

badhttp

An HTTP server that can be configured, via simple HTTP PATCH requests, to do bad things. The server associates each configuration with a request name and internally holds a map[string]config to determine what to do when a /{request_name} comes in.

Admin requests you can make

PATCH /admin/{request_name}/delay/{delay_in_seconds}

Make all requests to /{request_name} take {delay_in_seconds} seconds before they return

PATCH /admin/{request_name}/code/{http_code}

Make all requests to /{request_name} return with {http_code}

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