Added WSF_SERVICE.to_wgi_service to ease direct integration with existing WGI components
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user