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
@@ -8,9 +8,9 @@ class
EWF_BUFFERED_RESPONSE
inherit
EWSGI_RESPONSE_BUFFER
WGI_RESPONSE_BUFFER
create {EWSGI_APPLICATION}
create {WGI_APPLICATION}
make
feature {NONE} -- Initialization
@@ -22,7 +22,7 @@ feature {NONE} -- Initialization
create buffer.make (a_buffer_size)
end
response_buffer: EWSGI_RESPONSE_BUFFER
response_buffer: WGI_RESPONSE_BUFFER
buffer: STRING_8
@@ -79,7 +79,7 @@ feature {NONE} -- Implementation
buffer_flushed: buffer_count = 0 and buffer.count = 0
end
feature {EWSGI_APPLICATION} -- Commit
feature {WGI_APPLICATION} -- Commit
commit
do
@@ -7,27 +7,27 @@ class
EWF_IN_MEMORY_RESPONSE
inherit
EWSGI_RESPONSE_BUFFER
WGI_RESPONSE_BUFFER
create {EWSGI_APPLICATION}
create {WGI_APPLICATION}
make
feature {NONE} -- Initialization
make (res: EWSGI_RESPONSE_BUFFER)
make (res: WGI_RESPONSE_BUFFER)
do
response_buffer := res
create header.make
create body.make (100)
end
response_buffer: EWSGI_RESPONSE_BUFFER
response_buffer: WGI_RESPONSE_BUFFER
header: EWF_HEADER
body: STRING_8
feature {EWSGI_APPLICATION} -- Commit
feature {WGI_APPLICATION} -- Commit
commit
local
@@ -8,7 +8,7 @@ deferred class
EWF_IN_MEMORY_RESPONSE_APPLICATION
inherit
EWSGI_APPLICATION
WGI_APPLICATION
rename
execute as app_execute
end
@@ -16,7 +16,7 @@ inherit
feature -- Execution
app_execute (req: EWSGI_REQUEST; res: EWSGI_RESPONSE_BUFFER)
app_execute (req: WGI_REQUEST; res: WGI_RESPONSE_BUFFER)
-- Execute the request
-- See `req.input' for input stream
-- `req.environment' for the Gateway environment
@@ -27,7 +27,7 @@ feature -- Execution
feature -- Execute
execute (req: EWSGI_REQUEST; res: EWSGI_RESPONSE_BUFFER)
execute (req: WGI_REQUEST; res: WGI_RESPONSE_BUFFER)
-- Execute the request
-- See `req.input' for input stream
-- `req.environment' for the Gateway environment
@@ -41,7 +41,7 @@ feature -- Execute
feature {NONE} -- Implementation
new_response (req: EWSGI_REQUEST; a_res: EWSGI_RESPONSE_BUFFER): EWF_IN_MEMORY_RESPONSE
new_response (req: WGI_REQUEST; a_res: WGI_RESPONSE_BUFFER): EWF_IN_MEMORY_RESPONSE
do
create {EWF_IN_MEMORY_RESPONSE} Result.make (a_res)
end
@@ -8,7 +8,7 @@ note
author: "Paul Cohen <paul.cohen@seibostudio.se>"
status: "Draft"
class EWSGI_RESPONSE
class WGI_RESPONSE
create
make
@@ -26,9 +26,9 @@ feature {NONE} -- Initialization
create headers_table.make (10)
end
feature {EWSGI_RESPONSE_APPLICATION} -- Response status
feature {WGI_RESPONSE_APPLICATION} -- Response status
transmit_to (res: EWSGI_RESPONSE_BUFFER)
transmit_to (res: WGI_RESPONSE_BUFFER)
do
res.set_status_code (status)
res.write_headers_string (headers)
@@ -64,7 +64,7 @@ feature {EWSGI_RESPONSE_APPLICATION} -- Response status
ready_to_transmit
end
feature {EWSGI_RESPONSE_APPLICATION} -- Message start line and status
feature {WGI_RESPONSE_APPLICATION} -- Message start line and status
status: INTEGER
-- HTTP status code
@@ -88,7 +88,7 @@ feature {EWSGI_RESPONSE_APPLICATION} -- Message start line and status
end
end
feature {EWSGI_RESPONSE_APPLICATION} -- Message headers
feature {WGI_RESPONSE_APPLICATION} -- Message headers
headers: STRING
-- HTTP message headers including trailing empty line.
@@ -119,7 +119,7 @@ feature {EWSGI_RESPONSE_APPLICATION} -- Message headers
headers_table.has (key) and headers_table @ key = value
end
feature {EWSGI_RESPONSE_APPLICATION} -- Message body
feature {WGI_RESPONSE_APPLICATION} -- Message body
read_block
-- Read a message body block.
@@ -1,22 +1,22 @@
note
description: "Summary description for {EWSGI_RESPONSE_APPLICATION} "
description: "Summary description for {WGI_RESPONSE_APPLICATION} "
legal: "See notice at end of class."
status: "See notice at end of class."
date: "$Date$"
revision: "$Revision$"
deferred class
EWSGI_RESPONSE_APPLICATION
WGI_RESPONSE_APPLICATION
feature -- Execution
execute (req: EWSGI_REQUEST; res: EWSGI_RESPONSE_BUFFER)
execute (req: WGI_REQUEST; res: WGI_RESPONSE_BUFFER)
-- Execute the request
-- See `req.input' for input stream
-- `req.environment' for the Gateway environment
-- and `res.output' for output stream
local
rs: EWSGI_RESPONSE
rs: WGI_RESPONSE
do
rs := response (req)
if rs.ready_to_transmit then
@@ -24,7 +24,7 @@ feature -- Execution
else
-- Report internal server error.
-- Response not ready to transmit!
-- Implementor of EWSGI_APPLICATION has not done his job!
-- Implementor of WGI_APPLICATION has not done his job!
create rs.make
rs.set_status (500)
rs.set_header ("Content-Type", "text/plain")
@@ -35,7 +35,7 @@ feature -- Execution
feature -- Response
response (request: EWSGI_REQUEST): EWSGI_RESPONSE
response (request: WGI_REQUEST): WGI_RESPONSE
-- HTTP response for given 'request'.
deferred
ensure