Skip to content

sc3d/bad-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

bad-server

bad-server is an http server that can be told to respond in various bad ways. It is primarily intended for testing clients to make sure they're resilient to server outages.

Usage

bad-server figures out what behavior to exhibit based on headers you send it.

X-Response-Code-Histogram: send a status code based on an input histogram

  • X-Response-Code-Histogram: 500 => 100% 500 errors
  • X-Response-Code-Histogram: 500=50,200=50 will return 500s half the time, 200s the other
  • X-Response-Code-Histogram: 490 will return 490 even though it's not a standard http code

X-Request-Body-As-Response: send the request body back in the response

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%