Changed prefix from EWSGI_ to WGI_
Changed meta variable type to READABLE_STRING_32
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -6,7 +6,7 @@ note
|
||||
class HELLO_WORLD_RESPONSE
|
||||
|
||||
inherit
|
||||
EWSGI_RESPONSE
|
||||
WGI_RESPONSE
|
||||
redefine
|
||||
make,
|
||||
read_block
|
||||
|
||||
Reference in New Issue
Block a user