1 module("luci.httpd.handler.luci", package.seeall)
2 require("luci.dispatcher")
6 Luci = luci.util.class(luci.httpd.module.Handler)
7 Response = luci.httpd.module.Response
9 function Luci.__init__(self)
10 luci.httpd.module.Handler.__init__(self)
13 function Luci.handle(self, request, sourcein, sinkerr)
14 local r = luci.http.Request(
20 local res, id, data1, data2 = true, 0, nil, nil
24 local x = coroutine.create(luci.dispatcher.httpdispatch)
28 res, id, data1, data2 = coroutine.resume(x, r)
32 headers["Content-Type"] = "text/plain"
34 return status, headers, function() local x = table.remove(err) return x end
40 headers[data1] = data2
45 local res, id, data = coroutine.resume(x)
55 return Response(status, headers), iter