Improve socket management for EiffelWeb standalone connector.

This commit is contained in:
2016-10-04 18:49:48 +02:00
parent 0217c6d3f4
commit 77085364ee
5 changed files with 143 additions and 45 deletions

View File

@@ -24,6 +24,8 @@ feature -- Basic operations
s := "Hello World!"
create dt.make_now_utc
s.append (" (UTC time is " + dt.rfc850_string + ").")
s.append ("%N")
s.append ("Your request: " + request.request_uri + " %N")
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