Delay HTTP requests to test how your app behaves when requests take longer than expected. It's an async world.
Switch branches/tags
Clone or download
Latest commit 69320f1 Dec 9, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec es6ify codebase Aug 25, 2017
README.md Update README.md Aug 25, 2017
circle.yml add circleyml Aug 25, 2017
delayMiddleware.js fix delay not working Aug 25, 2017
index.js fix typo 😱 Sep 3, 2017
now.json add content to now.json Jun 25, 2018
package.json Update dependency nodemon to v1.18.7 Nov 27, 2018
proxyMiddleware.js allow gzipped responses Aug 25, 2017
redirectMiddleware.js es6ify codebase Aug 25, 2017
renovate.json Add renovate.json Jun 23, 2018
yarn.lock Update dependency nodemon to v1.18.7 Nov 27, 2018

README.md

httsleep

It's a simple service for producing delayed http calls.

Can for example be used to test asynchronous scenarios where you need to figure out how components behave when requests (for example ajax requests) take longer than in your normal environment and Chrome network throttling just is not enough. It can also be useful to test timeout behavior of client libraries.

You only need to add the number of seconds, you'd like a request to wait before it is answered, to an url. Just like: https://httsleep.herokuapp.com/3/

Can also be used to redirect: https://httsleep.herokuapp.com/3/?redirectUrl=https://httpbin.org/headers

Or proxy: https://httsleep.herokuapp.com/3/?proxyUrl=https://httpbin.org/headers

The maximun delay currently is 120 seconds.