For a given Buffer or Stream, this module will attempt to determine the total length of the stream contents. It currently supports Buffers, fs
streams, http
responses, and request
objects, and allows for specifying custom stream types.
Make sure your application is not vulnerable to large payload attacks
Get the size of a stream and abort it if threshold is reached