Removed WGI_RESPONSE.write (..)

Replaced any internal call to WGI_RESPONSE.write () by the associated implementation (i.e  output.put_string (...)  )
Added WGI_OUTPUT_STREAM.put_crlf

Renamed WSF_RESPONSE.put_response (a_message) as  `send (a_message)'
WSF_RESPONSE_MESSAGE.send_to (res)  is now exported only to WSF_RESPONSE
This commit is contained in:
Jocelyn Fiat
2012-03-19 14:52:12 +01:00
parent 84a12447db
commit fea0f115a0
13 changed files with 61 additions and 42 deletions

View File

@@ -1,6 +1,5 @@
note
description: "Summary description for {WGI_NINO_CONNECTOR}."
author: ""
date: "$Date$"
revision: "$Revision$"
@@ -127,7 +126,7 @@ feature -- Server
end
note
copyright: "2011-2012, Eiffel Software and others"
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software

View File

@@ -21,19 +21,24 @@ create
feature -- Header output operation
put_header_text (a_text: READABLE_STRING_8)
local
o: like output
do
write (a_text)
o := output
o.put_string (a_text)
-- Nino does not support persistent connection for now
write ("Connection: close")
write (crlf)
o.put_string ("Connection: close")
o.put_crlf
-- end of headers
write (crlf)
o.put_crlf
header_committed := True
end
;note
copyright: "2011-2012, Eiffel Software and others"
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software