Changed prefix from EWSGI_ to WGI_

Changed meta variable type to READABLE_STRING_32
This commit is contained in:
Jocelyn Fiat
2011-08-30 19:20:42 +02:00
parent ed8f5d694f
commit 6a581f6d62
51 changed files with 294 additions and 290 deletions

View File

@@ -8,18 +8,18 @@ class
HELLO_WORLD
inherit
EWSGI_RESPONSE_APPLICATION
WGI_RESPONSE_APPLICATION
DEFAULT_EWSGI_APPLICATION
DEFAULT_WGI_APPLICATION
create
make_and_launch
feature -- Response
response (request: EWSGI_REQUEST): EWSGI_RESPONSE
response (request: WGI_REQUEST): WGI_RESPONSE
do
if request.environment.path_info.starts_with ("/streaming/") then
if request.path_info.starts_with ("/streaming/") then
Result := streaming_response (request)
else
create Result.make
@@ -29,7 +29,7 @@ feature -- Response
end
end
streaming_response (request: EWSGI_REQUEST): EWSGI_RESPONSE
streaming_response (request: WGI_REQUEST): WGI_RESPONSE
do
create {HELLO_WORLD_RESPONSE} Result.make
Result.set_status (200)

View File

@@ -6,7 +6,7 @@ note
class HELLO_WORLD_RESPONSE
inherit
EWSGI_RESPONSE
WGI_RESPONSE
redefine
make,
read_block