Mercurial Hosting > luan
comparison web/src/luan/modules/web/HttpServicer.java @ 480:44caaa6a3d92
add Http.request.protocol
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 11 May 2015 16:43:04 -0600 |
parents | b8ddd55c9b11 |
children | b92fc7ec7f51 |
comparison
equal
deleted
inserted
replaced
479:1285c52ea9d4 | 480:44caaa6a3d92 |
---|---|
166 getters.rawPut( "query_string", new LuanJavaFunction( | 166 getters.rawPut( "query_string", new LuanJavaFunction( |
167 HttpServicer.class.getMethod( "getQueryString" ), this | 167 HttpServicer.class.getMethod( "getQueryString" ), this |
168 ) ); | 168 ) ); |
169 getters.rawPut( "remote_address", new LuanJavaFunction( | 169 getters.rawPut( "remote_address", new LuanJavaFunction( |
170 HttpServletRequest.class.getMethod( "getRemoteAddr" ), request | 170 HttpServletRequest.class.getMethod( "getRemoteAddr" ), request |
171 ) ); | |
172 getters.rawPut( "protocol", new LuanJavaFunction( | |
173 HttpServletRequest.class.getMethod( "getProtocol" ), request | |
171 ) ); | 174 ) ); |
172 LuanTable cookies = new LuanMeta() { | 175 LuanTable cookies = new LuanMeta() { |
173 | 176 |
174 @Override public Object __index(LuanState luan,LuanTable tbl,Object key) { | 177 @Override public Object __index(LuanState luan,LuanTable tbl,Object key) { |
175 if( !(key instanceof String) ) | 178 if( !(key instanceof String) ) |