luci/modules/luci-base/ucode/uhttpd.uc
Jo-Philipp Wich 673f38246a treewide: separate Lua runtime resources
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>
2022-10-25 01:03:37 +02:00

12 lines
204 B
Ucode

{%
import dispatch from 'luci.dispatcher';
import request from 'luci.http';
global.handle_request = function(env) {
let req = request(env, uhttpd.recv, uhttpd.send);
dispatch(req);
req.close();
};