From 03bf467ee568877dee6f11d7c10c511673430852 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Fri, 25 May 2012 23:51:59 +0200 Subject: [PATCH] Added descriptions to WSF_RESPONSE about .send (mesg) Fixed minor issues in other classes --- examples/simple_file/service_file.e | 2 +- examples/tutorial/step_3/hello/src/hello_application.e | 4 ++-- library/server/wsf/src/wsf_response.e | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/simple_file/service_file.e b/examples/simple_file/service_file.e index 35189718..cf94f2f0 100644 --- a/examples/simple_file/service_file.e +++ b/examples/simple_file/service_file.e @@ -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 diff --git a/examples/tutorial/step_3/hello/src/hello_application.e b/examples/tutorial/step_3/hello/src/hello_application.e index 01ec67ec..3595eb36 100644 --- a/examples/tutorial/step_3/hello/src/hello_application.e +++ b/examples/tutorial/step_3/hello/src/hello_application.e @@ -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 diff --git a/library/server/wsf/src/wsf_response.e b/library/server/wsf/src/wsf_response.e index 0c90ab7f..ba79c7aa 100644 --- a/library/server/wsf/src/wsf_response.e +++ b/library/server/wsf/src/wsf_response.e @@ -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$"