I'm trying to manage my Meteor web app's API usage and have two questions.
I am open to using Iron Router or Node's HTTP package. I previously asked about setting some limits, but in this case I want to calculate and keep track of how much data is going in and out of my app.
content-length
, but from what I understand, this field isn't guaranteed.
Could you check the size of the retrieved POST data after it has arrived?
Node also specifies that Note: Node does not check whether Content-Length and the length of the body which has been transmitted are equal or not. https://nodejs.org/api/http.html#http_class_http_clientrequest