xebia / mock-rest-request

Mock REST requests in NodeJS
https://xebia.com/blog/mocking-a-rest-backend-for-your-angularjs-grunt-web-application/
Apache License 2.0
12 stars 6 forks source link

is there any way to support delays before sending mock responses? #4

Open horacimacias opened 8 years ago

horacimacias commented 8 years ago

for example I want to setup a mock response but I need the server to respond back 10 seconds after receiving the request. Is there any way to achieve this?

lammertw commented 8 years ago

There is other middleware for that, like https://www.npmjs.com/package/connect-slow. You should be able to combine both when you configure the connect middleware.