changeset 486:b92fc7ec7f51

add Http.request.scheme and Http.request.is_secure
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 11 May 2015 22:08:49 -0600
parents c7acb40c6ca9
children d6a465e4ea92
files web/src/luan/modules/web/HttpServicer.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/web/src/luan/modules/web/HttpServicer.java	Mon May 11 21:23:02 2015 -0600
+++ b/web/src/luan/modules/web/HttpServicer.java	Mon May 11 22:08:49 2015 -0600
@@ -172,6 +172,12 @@
 		getters.rawPut( "protocol", new LuanJavaFunction(
 			HttpServletRequest.class.getMethod( "getProtocol" ), request
 		) );
+		getters.rawPut( "scheme", new LuanJavaFunction(
+			HttpServletRequest.class.getMethod( "getScheme" ), request
+		) );
+		getters.rawPut( "is_secure", new LuanJavaFunction(
+			HttpServletRequest.class.getMethod( "isSecure" ), request
+		) );
 		LuanTable cookies = new LuanMeta() {
 
 			@Override public Object __index(LuanState luan,LuanTable tbl,Object key) {