status must be set, else WGI_SERVICE.execute will report the

postcondition violation.

Conflicts:

	library/server/wsf/router/wsf_handler.e
This commit is contained in:
Berend de Boer
2012-03-19 11:39:08 +13:00
committed by Jocelyn Fiat
parent e5323dd208
commit 876f9e02b7

View File

@@ -2,9 +2,9 @@ note
description: "[ description: "[
Request handler object which is called by a WSF_ROUTER Request handler object which is called by a WSF_ROUTER
An handler should implement the method An handler should implement the method
execute (ctx, req, res) execute (ctx, req, res)
The class is generic, this way one can use a custom WSF_HANDLER_CONTEXT if needed The class is generic, this way one can use a custom WSF_HANDLER_CONTEXT if needed
]" ]"
date: "$Date$" date: "$Date$"
@@ -28,6 +28,7 @@ feature -- Execution
execute (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE) execute (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE)
-- Execute request handler -- Execute request handler
--
-- `ctx': contains advanced data related to request_uri -- `ctx': contains advanced data related to request_uri
-- in the case of URI_TEMPLATE, it add support for "path_parameter" -- in the case of URI_TEMPLATE, it add support for "path_parameter"
-- `req': request data -- `req': request data
@@ -36,6 +37,8 @@ feature -- Execution
require require
is_valid_context: is_valid_context (req) is_valid_context: is_valid_context (req)
deferred deferred
ensure
response_status_set: res.status_is_set
end end
feature -- Execution: report feature -- Execution: report