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:
@@ -187,15 +187,31 @@ feature -- Output operation
|
||||
|
||||
feature -- Response object
|
||||
|
||||
put_response (obj: WSF_RESPONSE_MESSAGE)
|
||||
-- Set `obj' as the whole response to the client
|
||||
--| `obj' is responsible to sent the status code, the header and the content
|
||||
put_response (a_message: WSF_RESPONSE_MESSAGE)
|
||||
-- Set `a_message' as the whole response to the client
|
||||
--| `a_message' is responsible to sent the status code, the header and the content
|
||||
obsolete
|
||||
"[2012-Mars-19] Use `send (a_message)' "
|
||||
require
|
||||
header_not_committed: not header_committed
|
||||
status_not_committed: not status_committed
|
||||
no_message_committed: not message_committed
|
||||
do
|
||||
obj.send_to (Current)
|
||||
a_message.send_to (Current)
|
||||
ensure
|
||||
status_committed: status_committed
|
||||
header_committed: header_committed
|
||||
end
|
||||
|
||||
send (a_message: WSF_RESPONSE_MESSAGE)
|
||||
-- Set `a_message' as the whole response to the client
|
||||
--| `a_message' is responsible to sent the status code, the header and the content
|
||||
require
|
||||
header_not_committed: not header_committed
|
||||
status_not_committed: not status_committed
|
||||
no_message_committed: not message_committed
|
||||
do
|
||||
a_message.send_to (Current)
|
||||
ensure
|
||||
status_committed: status_committed
|
||||
header_committed: header_committed
|
||||
|
||||
Reference in New Issue
Block a user