1.0.1 • Published 7 years ago

delay-req v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

delay-req

Nodejs lib to delay each http request in expressjs

Installation

npm i delay-req -S

Usage

Please refer to examples

Function

timeout(options)

options
      delay - specifies the amount of the delay to be applied for each request
      maxPendingReq - specifies the maximum number of pending requests that are allowed before sending error response
      errStatus - status code to be sent in case the maximum number of pending request limit has been crossed
      errMsg - error message to sent along with error status code

License

MIT

1.0.1

7 years ago

1.0.0

7 years ago