Applied the removal of HTTP_INPUT_STREAM and HTTP_OUTPUT_STREAM to the example.

This commit is contained in:
Jocelyn Fiat
2011-11-14 16:32:09 +01:00
parent 9f2abab670
commit b78c44f4a1
6 changed files with 37 additions and 26 deletions

View File

@@ -22,19 +22,30 @@ feature -- Execution
-- process the request and create an answer
local
l_data: STRING
s: STRING
s: detachable STRING
n: INTEGER
sock: like socket
do
from
n := 1_024
input.read_stream (n)
s := input.last_string
sock := socket
if sock.socket_ok then
sock.read_stream_thread_aware (n)
s := sock.last_string
else
s := Void
end
create l_data.make_empty
until
s.count < n
s = Void or else s.count < n
loop
l_data.append_string (s)
input.read_stream (n)
if sock.socket_ok then
sock.read_stream_thread_aware (n)
s := sock.last_string
else
s := Void
end
end
Precursor
end