delay-req

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i delay-req

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • akashbabu