Refactored WSF_HANDLER_CONTEXT
- removed path_parameter - added `item' to include WSF_REQUEST.item - marked obsolete `parameter' The goal is to remove confusion, remove URI_TEMPLATE specific `path_parameter' and provide a way to use ctx.item (..) to also include meta variable, query, form, ... items
This commit is contained in:
@@ -27,7 +27,12 @@ feature -- Status report
|
||||
feature -- Execution
|
||||
|
||||
execute (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||
-- Execute request handler
|
||||
-- Execute request handler
|
||||
-- `ctx': contains advanced data related to request_uri
|
||||
-- in the case of URI_TEMPLATE, it add support for "path_parameter"
|
||||
-- `req': request data
|
||||
-- `res': reponse stream
|
||||
--| note `ctx' can also provide data coming from `req'
|
||||
require
|
||||
is_valid_context: is_valid_context (req)
|
||||
deferred
|
||||
|
||||
Reference in New Issue
Block a user