http.forms.parse_args

http.forms

parse_args(body) -> args

Parse a URL-encoded form body into a key-value table

Parses an application/x-www-form-urlencoded body. The body splits into pairs on &, and a pair splits into a key and a value on its first =. Both are decoded the same way: + becomes a space, then %XX becomes its byte. Values come back raw: the caller escapes one at output, with html_escape for HTML.

Returns an empty table for non-string or empty input.