Added WSF_SERVICE.to_wgi_service to ease direct integration with existing WGI components

This commit is contained in:
Jocelyn Fiat
2012-03-20 11:40:13 +01:00
parent 9eef812795
commit 482f8e41e7
5 changed files with 10 additions and 30 deletions

View File

@@ -10,7 +10,7 @@ feature -- Access
local
cgi: WGI_CGI_CONNECTOR
do
create cgi.make (Current)
create cgi.make (to_wgi_service)
cgi.launch
end

View File

@@ -18,7 +18,7 @@ feature -- Access
print ("Example: start a Nino web server on port " + port_number.out +
", %Nand reply Hello World for any request such as http://localhost:" + port_number.out + "/" + base_url + "%N")
end
create app.make_custom (agent wgi_execute, base_url)
create app.make_custom (to_wgi_service), base_url)
app.force_single_threaded
app.listen (port_number)

View File

@@ -84,7 +84,7 @@ feature -- Helpers
end
rep_data.set_message (s)
end
rep_data.send (res)
res.send (rep_data)
rep_data.recycle
end