Files
EWF/examples/simple/application.e
Jocelyn Fiat 46eb92ac37 Major renaming, adopt the WSF_ prefix for all classes under "wsf", and simplify some class names
Removed in WGI_INPUT_STREAM, the assertion "same_last_string_reference"
Copyright updates
2012-03-16 09:49:41 +01:00

31 lines
593 B
Plaintext

note
description : "simple application root class"
date : "$Date$"
revision : "$Revision$"
class
APPLICATION
create
make
feature {NONE} -- Initialization
make
-- Run application.
local
s: WSF_DEFAULT_SERVICE_LAUNCHER
do
create s.make_and_launch (agent execute)
end
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
do
-- To send a response we need to setup, the status code and
-- the response headers.
res.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "text/plain"], ["Content-Length", "11"]>>)
res.put_string ("Hello World")
end
end