diff src/luan/modules/http/Http.luan @ 1280:781ec0a92bb5

add Boot.luan
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 20 Dec 2018 13:38:16 -0700
parents 382c444a6c77
children 5763597ca5c0
line wrap: on
line diff
--- a/src/luan/modules/http/Http.luan	Tue Dec 18 12:54:55 2018 -0700
+++ b/src/luan/modules/http/Http.luan	Thu Dec 20 13:38:16 2018 -0700
@@ -14,7 +14,7 @@
 local lower = String.lower or error()
 local matches = String.matches or error()
 local trim = String.trim or error()
-local IoLuan = require "java:luan.modules.IoLuan"
+local Boot = require "luan:Boot.luan"
 local LuanJava = require "java:luan.Luan"
 local Request = require "java:luan.webserver.Request"
 local Response = require "java:luan.webserver.Response"
@@ -134,13 +134,13 @@
 		this.writer and "writer already set"
 		this.writer = ResponseOutputStream.new(this.java)
 		this.writer = OutputStreamWriter.new(this.writer)
-		return IoLuan.textWriter(this.writer)
+		return Boot.text_writer(this.writer)
 	end
 
 	function this.binary_writer()
 		this.writer and "writer already set"
 		this.writer = ResponseOutputStream.new(this.java)
-		return IoLuan.binaryWriter(this.writer)
+		return Boot.binary_writer(this.writer)
 	end
 
 	return this