diff src/luan/modules/http/Http.luan @ 1226:b6aa2cd51b02

Http cleanup
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 01 Apr 2018 19:42:47 -0600
parents d5d5d29d7592
children 275d1b52dbce
line wrap: on
line diff
--- 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