Mercurial Hosting > luan
comparison src/luan/lib/HttpLib.java @ 90:b1e87f1bcc13
make module names uppercase;
WebServlet improvements;
git-svn-id: https://luan-java.googlecode.com/svn/trunk@91 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Sat, 02 Mar 2013 05:02:56 +0000 |
parents | 8ef2d6701541 |
children | 2079455459ac |
comparison
equal
deleted
inserted
replaced
89:8ef2d6701541 | 90:b1e87f1bcc13 |
---|---|
19 import luan.LuanExitException; | 19 import luan.LuanExitException; |
20 | 20 |
21 | 21 |
22 public final class HttpLib { | 22 public final class HttpLib { |
23 | 23 |
24 public static final String NAME = "http"; | 24 public static final String NAME = "Http"; |
25 public static final String FN_NAME = "http.server"; | 25 public static final String FN_NAME = "Http.server"; |
26 | 26 |
27 public static void load(LuanState luan) throws LuanException { | 27 public static void load(LuanState luan) throws LuanException { |
28 PackageLib.require(luan,NAME); | 28 PackageLib.require(luan,NAME); |
29 Object fn = luan.get(HttpLib.FN_NAME); | 29 Object fn = luan.get(HttpLib.FN_NAME); |
30 if( !(fn instanceof LuanFunction) ) | 30 if( !(fn instanceof LuanFunction) ) |