request-limits

1.1.0 • Public • Published

request-limits

Limit the size of an incoming http request!

If you don't want to wait for a request thats too large, this module will throw an error event if the size of the incoming http request is too large for you to handle

Usage:

    var opts = {uri:'http://google.com'}
      , s = request(opts, function (e, r, b) { 
          //if the size is more than 255bytes an error event will happen  
        })
    limit(s, 255)

Test:

npm t

Readme

Keywords

Package Sidebar

Install

npm i request-limits

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • faiqyou