Skip to content

fakeresponder/fakeresponder

Repository files navigation

fakeresponder

A simple HTTP server that could respond with with a given status code and/or sleep for a given amount of time.

Usage

The examples above are for GET requests. You can also use HEAD, POST, PUT, DELETE, PATCH.

All the params can be combined, e.g. https://fakeresponder.onrender.com/?sleepMs=2000&statusCode=500

Contributing

  • bun dev to start the dev server.
  • bun start to start the server without the --hot reload flag.
  • bun test to run the tests.

Deployment to Render

  1. Create a new web service
  2. Select Docker as your service's runtime