luci-base: switch to lucihttp based POST data processing
authorJo-Philipp Wich <jo@mein.io>
Wed, 18 Apr 2018 09:36:53 +0000 (11:36 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 18 Apr 2018 14:21:27 +0000 (16:21 +0200)
commit59dea0230cbbea75459c4e61d1da64629d1da31b
tree00370d418efdaf0d4d07eb941911072596f416f2
parentf52c8d0b7f0eeec4259992182103d859f454639b
luci-base: switch to lucihttp based POST data processing

Use the liblucihttp provided multipart and x-www-urlencoded body parsers
and drop the old Lua parsing code.

The C based data parsers are way faster than their old Lua counterparts
while producing less string garbage and more correct results.

While refactoring the luci.http.protocol code, also drop unused functions
and dead code, heavily reducing the module size.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/http/protocol.lua
modules/luci-base/luasrc/http/protocol.luadoc