Wondering what’s next for npm?Check out our public roadmap! »

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

Install

npm i delay-req

DownloadsWeekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar