replace write_string by write in RESPONSE
This commit is contained in:
@@ -61,7 +61,7 @@ feature {NONE} -- Execution
|
|||||||
and a_exception /= Void and then attached a_exception.exception_trace as l_trace
|
and a_exception /= Void and then attached a_exception.exception_trace as l_trace
|
||||||
then
|
then
|
||||||
res.write_header ({HTTP_STATUS_CODE}.internal_server_error, Void)
|
res.write_header ({HTTP_STATUS_CODE}.internal_server_error, Void)
|
||||||
res.write_string ("<pre>" + l_trace + "</pre>")
|
res.write ("<pre>" + l_trace + "</pre>")
|
||||||
end
|
end
|
||||||
post_execute (req, res)
|
post_execute (req, res)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ feature -- Status setting
|
|||||||
|
|
||||||
feature -- Output operation
|
feature -- Output operation
|
||||||
|
|
||||||
write_string (s: STRING)
|
write (s: STRING)
|
||||||
-- Send the content of `s'
|
-- Send the content of `s'
|
||||||
do
|
do
|
||||||
body.append (s)
|
body.append (s)
|
||||||
@@ -57,7 +57,7 @@ feature -- Output operation
|
|||||||
f.exhausted
|
f.exhausted
|
||||||
loop
|
loop
|
||||||
f.read_stream (1024)
|
f.read_stream (1024)
|
||||||
write_string (f.last_string)
|
write (f.last_string)
|
||||||
end
|
end
|
||||||
f.close
|
f.close
|
||||||
end
|
end
|
||||||
@@ -74,7 +74,7 @@ feature {GW_APPLICATION} -- Commit
|
|||||||
commit (a_output: GW_OUTPUT_STREAM)
|
commit (a_output: GW_OUTPUT_STREAM)
|
||||||
do
|
do
|
||||||
header.send_to (a_output)
|
header.send_to (a_output)
|
||||||
write_string (body)
|
write (body)
|
||||||
Precursor (a_output)
|
Precursor (a_output)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ feature -- Status setting
|
|||||||
|
|
||||||
feature -- Output operation
|
feature -- Output operation
|
||||||
|
|
||||||
write_string (s: STRING)
|
write (s: STRING)
|
||||||
-- Send the content of `s'
|
-- Send the content of `s'
|
||||||
local
|
local
|
||||||
buf: like buffer
|
buf: like buffer
|
||||||
@@ -84,7 +84,7 @@ feature -- Output operation
|
|||||||
f.exhausted
|
f.exhausted
|
||||||
loop
|
loop
|
||||||
f.read_stream (buffer_capacity)
|
f.read_stream (buffer_capacity)
|
||||||
write_string (f.last_string)
|
write (f.last_string)
|
||||||
end
|
end
|
||||||
f.close
|
f.close
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -18,16 +18,24 @@ feature {GW_APPLICATION} -- Commit
|
|||||||
|
|
||||||
feature -- Output operation
|
feature -- Output operation
|
||||||
|
|
||||||
write_string (s: STRING)
|
write (s: STRING)
|
||||||
-- Send the content of `s'
|
-- Send the content of `s'
|
||||||
deferred
|
deferred
|
||||||
end
|
end
|
||||||
|
|
||||||
|
write_string (s: STRING)
|
||||||
|
-- Send the content of `s'
|
||||||
|
do
|
||||||
|
write (s)
|
||||||
|
end
|
||||||
|
|
||||||
write_file_content (fn: STRING)
|
write_file_content (fn: STRING)
|
||||||
-- Send the content of file `fn'
|
-- Send the content of file `fn'
|
||||||
deferred
|
deferred
|
||||||
end
|
end
|
||||||
|
|
||||||
|
feature -- Header output operation
|
||||||
|
|
||||||
write_header_object (h: GW_HEADER)
|
write_header_object (h: GW_HEADER)
|
||||||
-- Send `header' to `output'.
|
-- Send `header' to `output'.
|
||||||
deferred
|
deferred
|
||||||
@@ -58,8 +66,8 @@ feature -- Output operation
|
|||||||
write_header_line (s: STRING)
|
write_header_line (s: STRING)
|
||||||
-- Send `s' to http client as header line
|
-- Send `s' to http client as header line
|
||||||
do
|
do
|
||||||
write_string (s)
|
write (s)
|
||||||
write_string ("%R%N")
|
write ("%R%N")
|
||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ feature {NONE} -- Initialization
|
|||||||
|
|
||||||
feature -- Output operation
|
feature -- Output operation
|
||||||
|
|
||||||
write_string (s: STRING)
|
write (s: STRING)
|
||||||
-- Send the content of `s'
|
-- Send the content of `s'
|
||||||
do
|
do
|
||||||
output.put_string (s)
|
output.put_string (s)
|
||||||
|
|||||||
Reference in New Issue
Block a user