diff http/src/luan/modules/http/HttpServicer.java @ 495:598123096772

rename service() to respond()
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 15 May 2015 18:10:14 -0600
parents 2b9bc97f0439
children c65df5b25932
line wrap: on
line diff
--- a/http/src/luan/modules/http/HttpServicer.java	Fri May 15 17:43:13 2015 -0600
+++ b/http/src/luan/modules/http/HttpServicer.java	Fri May 15 18:10:14 2015 -0600
@@ -95,12 +95,12 @@
 	private static LuanFunction getService(LuanState luan,LuanTable tbl)
 		throws LuanException
 	{
-		Object service = tbl.get(luan,"service");
-		if( service == null )
-			throw luan.exception( "function 'service' is not defined" );
-		if( !(service instanceof LuanFunction) )
-			throw luan.exception( "'service' must be a function but is a " + Luan.type(service) );
-		return (LuanFunction)service;
+		Object respond = tbl.get(luan,"respond");
+		if( respond == null )
+			throw luan.exception( "function 'respond' is not defined" );
+		if( !(respond instanceof LuanFunction) )
+			throw luan.exception( "'respond' must be a function but is a " + Luan.type(respond) );
+		return (LuanFunction)respond;
 	}