lua-http
lua-http copied to clipboard
Easy way for a server to limit body size of a stream
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)