changeset 1226:b6aa2cd51b02

Http cleanup
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 01 Apr 2018 19:42:47 -0600
parents 7d4b5afb636f
children a12dba1f0787
files conv.txt src/luan/modules/http/Http.luan
diffstat 2 files changed, 4 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/conv.txt	Sun Apr 01 19:04:43 2018 -0600
+++ b/conv.txt	Sun Apr 01 19:42:47 2018 -0600
@@ -1,3 +1,7 @@
+"Http.uncache_site"
+"full_path"
+"Http.version"
+
 "java_threads.luan"
 "luan_threads.luan"
 "Shell_mod.luan"
--- a/src/luan/modules/http/Http.luan	Sun Apr 01 19:04:43 2018 -0600
+++ b/src/luan/modules/http/Http.luan	Sun Apr 01 19:42:47 2018 -0600
@@ -25,8 +25,6 @@
 
 local Http = {}
 
-Http.version = "luan"
-
 function Http.new_request(java)
 	local this = {}
 	Http.request = this
@@ -48,10 +46,6 @@
 	end
 	this.scheme = "http"
 
-	function this.full_path()  -- compatible with jetty
-		return this.raw_path or this.path
-	end
-
 	function this.url()
 		return this.scheme.."://"..this.headers["host"]..this.raw_path
 	end
@@ -150,13 +144,4 @@
 	return java
 end
 
-
-function Http.uncache_site()
-	for k in pairs(Table.copy(Package.loaded)) do
-		if matches(k,"^site:") then
-			Package.loaded[k] = nil
-		end
-	end
-end
-
 return Http