net/http.lua

changeset 720
8f22e9fb2291
parent 719
b1eb112478b8
child 738
cf70342985df
equal deleted inserted replaced
719:b1eb112478b8 720:8f22e9fb2291
168 168
169 if body then 169 if body then
170 req.write(body); 170 req.write(body);
171 end 171 end
172 172
173 req.callback = function (content, code, request) log("debug", "Calling callback, code %s content: %s", code or "---", content or "---"); return select(2, xpcall(function () return callback(content, code, request) end, handleerr)); end 173 req.callback = function (content, code, request) log("debug", "Calling callback, status %s", code or "---"); return select(2, xpcall(function () return callback(content, code, request) end, handleerr)); end
174 req.reader = request_reader; 174 req.reader = request_reader;
175 req.state = "status"; 175 req.state = "status";
176 176
177 listener.register_request(req.handler, req); 177 listener.register_request(req.handler, req);
178 178

mercurial