Updated EWSGI specification (markdown)
This commit is contained in:
@@ -73,7 +73,7 @@ This is the Eiffel application side. Basically one should be able to write:
|
|||||||
Result.set_status (Http_not_found)
|
Result.set_status (Http_not_found)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end`
|
end
|
||||||
|
|
||||||
Or to register handlers for specific URL paths (or regexp based URL path expressions):
|
Or to register handlers for specific URL paths (or regexp based URL path expressions):
|
||||||
|
|
||||||
@@ -84,14 +84,12 @@ Or to register handlers for specific URL paths (or regexp based URL path express
|
|||||||
make
|
make
|
||||||
redefine
|
redefine
|
||||||
make
|
make
|
||||||
features
|
feature
|
||||||
|
|
||||||
make is
|
make is
|
||||||
do
|
do
|
||||||
register_handler (”/hello”, ~hello_world_handler)
|
register_handler (”/hello”, ~hello_world_handler)
|
||||||
-- The default execute feature will dispatch calls to the appropriate handler!
|
-- The default execute feature will dispatch calls to the appropriate handler!
|
||||||
end
|
end
|
||||||
|
|
||||||
hello_world_handler (env: ENVIRON): RESPONSE is
|
hello_world_handler (env: ENVIRON): RESPONSE is
|
||||||
do
|
do
|
||||||
create Result
|
create Result
|
||||||
@@ -104,7 +102,6 @@ Or to register handlers for specific URL paths (or regexp based URL path express
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
## Specification Details
|
## Specification Details
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user