Mercurial Hosting > luan
comparison src/luan/modules/http/HttpServicer.java @ 1267:9fa8b8389578
add LuanTable.luan;
support metatable __gc();
add luan.sql;
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 12 Nov 2018 02:10:41 -0700 |
parents | 3f4644246e39 |
children | 503bde9a7c80 |
comparison
equal
deleted
inserted
replaced
1266:05934fbf635a | 1267:9fa8b8389578 |
---|---|
33 LuanCloner cloner = new LuanCloner(LuanCloner.Type.INCREMENTAL); | 33 LuanCloner cloner = new LuanCloner(LuanCloner.Type.INCREMENTAL); |
34 luan = (LuanState)cloner.clone(luan); | 34 luan = (LuanState)cloner.clone(luan); |
35 } | 35 } |
36 LuanTable module = (LuanTable)PackageLuan.require(luan,"luan:http/Http.luan"); | 36 LuanTable module = (LuanTable)PackageLuan.require(luan,"luan:http/Http.luan"); |
37 LuanFunction fn = (LuanFunction)module.rawGet("handle_error"); | 37 LuanFunction fn = (LuanFunction)module.rawGet("handle_error"); |
38 return (Response)fn.call( luan, new Object[]{request,e.table()} ); | 38 return (Response)fn.call( luan, new Object[]{request,e.table(luan)} ); |
39 } | 39 } |
40 | 40 |
41 private static Response serviceLuan(LuanState luan,Request request,String modName) | 41 private static Response serviceLuan(LuanState luan,Request request,String modName) |
42 throws LuanException | 42 throws LuanException |
43 { | 43 { |