Cleaned simple example, and made the standalone target with SCOOP concurrency.

This commit is contained in:
2015-04-01 15:09:04 +02:00
parent 8246bc1444
commit 48cb99498c
2 changed files with 8 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ feature -- Basic operations
do
-- To send a response we need to setup, the status code and
-- the response headers.
s := "Hello World!<img src=%"foobar.png%" />"
s := "Hello World!"
response.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "text/html"], ["Content-Length", s.count.out]>>)
response.set_status_code ({HTTP_STATUS_CODE}.ok)
response.header.put_content_type_text_html