lua-http icon indicating copy to clipboard operation
lua-http copied to clipboard

Easy way for a server to limit body size of a stream

Open daurnimator opened this issue 7 years ago • 0 comments

e.g. stream:setmaxbodysize(4096)

Once the limit is reached then e.g. :get_body_as_string() should return some error. (which then e.g. gets translated to a 413 status code)

daurnimator avatar Aug 27 '18 15:08 daurnimator