From e63553555da2886b8e4442ba9a7b28cde6455fca Mon Sep 17 00:00:00 2001 From: seibo Date: Tue, 12 Jul 2011 15:57:54 -0700 Subject: [PATCH] Updated EWSGI specification (markdown) --- EWSGI-specification.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/EWSGI-specification.md b/EWSGI-specification.md index e4f10d1a..a2b1e608 100644 --- a/EWSGI-specification.md +++ b/EWSGI-specification.md @@ -56,24 +56,24 @@ This is the web server side. The server sends the request information in an envi This is the Eiffel application side. Basically one should be able to write: - class APPLICATION - inherit - EW_APPLICATION - creation - make - - THIS IS PART OF THE EWSGI SPECIFICATION! - features - execute (env: ENVIRON): RESPONSE is - - THIS IS PART OF THE EWSGI SPECIFICATION! - do - create Result - if env.path_info = ”/hello” then - Result.set_status (Http_ok) - Result.set_header (”Content-Type”, ”text/html; charset=utf-8”) - Result.put_contents (”Hello World”) - else - Result.set_status (Http_not_found) - end - end - end + class APPLICATION + inherit + EW_APPLICATION + creation + make - - THIS IS PART OF THE EWSGI SPECIFICATION! + features + execute (env: ENVIRON): RESPONSE is - - THIS IS PART OF THE EWSGI SPECIFICATION! + do + create Result + if env.path_info = ”/hello” then + Result.set_status (Http_ok) + Result.set_header (”Content-Type”, ”text/html; charset=utf-8”) + Result.put_contents (”Hello World”) + else + Result.set_status (Http_not_found) + end + end + end` Or to register handlers for specific URL paths (or regexp based URL path expressions):