How can I throttle uploads in Node.js / Express 4? -
i throttle file uploads in express 4. mean bytes per second, not number of api calls.
i want able simulate slow connection file uploads can test out progress animations.
i want limit file upload endpoint , not other endpoints. how can this?
ideally, i'd add middleware on specific endpoint , specify transfer speed in bytes/s.
if on osx , interested in occasional testing (as opposed standardized test response) i'd take @ apple network link conditioner. here's info.
also appears recent versions of chromium , assume chrome have built in network throttling options in dev tools.
Comments
Post a Comment