summaryrefslogtreecommitdiff
path: root/libs/luci-lib-base/luasrc/http.lua
Commit message (Collapse)AuthorAgeFilesLines
* luci-lib-base: ensure that `luci.http` can be required standaloneJo-Philipp Wich2022-11-041-1/+1
| | | | | | | | | | | | Various existing Lua software is requiring the `luci.http` library for URL encoding/decoding tasks so ensure that it can be loaded in a stand alone manner even if the emulated Lua runtime environment is not available. Fixes: cea2c3578e ("luci-lib-base: forward luci.http.context.request.message to ucode") Ref: https://forum.openwrt.org/t/x/141817 Ref: https://github.com/openwrt/luci/pull/5976#issuecomment-1296220586 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-lib-base: forward luci.http.context.request.message to ucodeJo-Philipp Wich2022-10-251-0/+1
| | | | | | | | | | Some existing LuCI application code accesses the `luci.http.context.request.message.params` HTTP parameter table directly. Forward the `luci.http.context.request.message` object to the ucode `luci.http.message` instance in order to properly support this. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* treewide: separate Lua runtime resourcesJo-Philipp Wich2022-10-251-437/+27
| | | | | | | | | | | Move classes required for Lua runtime support into a new `luci-lua-runtime` package. Also replace the `luci.http` and `luci.util` classes in `luci-lib-base` with stubbed versions interacting with the ucode based runtime environment. Finally merge `luci-base-ucode` into the remainders of `luci-base`. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-base: move some generic classes into a separate luci-base-libs packageSven Roederer2020-07-191-0/+554
The new package luci-base-libs provides the modules that not strictly relate to the web-interface of luci. By separating these libs they can be used by other packages without having to install the web-components. This change was inspired by providing a shell-only interface for 4MB-flash devices, by keeping as much code common with a full install. Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>