comparison web/src/luan/modules/web/web_run.luan @ 178:2c08e7e27a70

minor - rename web fn from "page" to "service" git-svn-id: https://luan-java.googlecode.com/svn/trunk@179 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 23 Jun 2014 20:41:08 +0000
parents bdbd4740121f
children 04b86428dc50
comparison
equal deleted inserted replaced
177:02859b3e9d80 178:2c08e7e27a70
14 print(i,line) 14 print(i,line)
15 i = i + 1 15 i = i + 1
16 end 16 end
17 end 17 end
18 18
19 function page() 19 function service()
20 local content_type = Http.request.get_parameter("content_type") 20 local content_type = Http.request.get_parameter("content_type")
21 if content_type ~= nil then 21 if content_type ~= nil then
22 Http.response.set_content_type(content_type) 22 Http.response.set_content_type(content_type)
23 end 23 end
24 Io.stdout = Http.response.text_writer() 24 Io.stdout = Http.response.text_writer()