Added descriptions to WSF_RESPONSE about .send (mesg)

Fixed minor issues in other classes
This commit is contained in:
Jocelyn Fiat
2012-05-25 23:51:59 +02:00
parent 08347da643
commit 03bf467ee5
3 changed files with 4 additions and 3 deletions

View File

@@ -19,6 +19,6 @@ feature {NONE} -- Initialization
f: WSF_FILE_RESPONSE
do
create f.make_html ("home.html")
res.put_response (f)
res.send (f)
end
end

View File

@@ -33,9 +33,9 @@ feature {NONE} -- Initialization
Result.set_title ("EWF tutorial / Hello World!")
--| Check if the request contains a parameter named "user"
--| this could be a query, or a form parameter
if attached req.string_item ("user") as f_user then
if attached req.string_item ("user") as l_user then
--| If yes, say hello world #name
Result.set_body ("Hello " + f_user.string + "!")
Result.set_body ("Hello " + l_user + "!")
--| We should html encode this name
--| but to keep the example simple, we don't do that for now.
else

View File

@@ -9,6 +9,7 @@ note
- using put_error will eventually send error message directly to the underlying connector's log
(i.e for apache, it will go to the error log)
- And you can also send the message as "chunked", see put_chunk (..) for more details
- Or you can send a WSF_RESPONSE_MESSAGE in once, see `send (mesg)'
]"
date: "$Date$"
revision: "$Revision$"