Monday 7 August 2017

[Express] Recording size of response sent

Hey guys, just wondering if any of you have figured out how to record the size of responses sent when a user uses an API I've made? The idea is I want to record how much data they're getting off my API and be able to lock them out when they exceed some limit in megabytes. Is this feasible, or should I do something else to create request limitations?I was looking at the Content-Length header but I'm not sure if that would be the thing to use.

Submitted August 08, 2017 at 02:31AM by acylus0

No comments:

Post a Comment