Simple sinatra app for testing bad requests on the server
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Gemfile
Gemfile.lock
README.md
chaos_server.rb
config.ru

README.md

ChaosServer

Sinatra app for testing bad requests on the server.

Similar to https://github.com/kennethreitz/httpbin, but simpler. Just pass as the following params to control the response:

  • sleep: time in seconds that the query will delay the reponse
  • status: the status code
  • response_body: the response of the request. Defaults to "response_body"
  • repeat: how many times response_body will be repeated. Defaults to 1

Meta

Created by Daniel Ribeiro.

Released under the MIT License: http://www.opensource.org/licenses/mit-license.php

http://github.com/danielribeiro/ChaosServer