Reviewed WSF_REQUEST.item (..) and items to look into Form, Query, and Path (cookie are excluded for security)
Added WSF_REQUEST.path_parameter (a_name): detachable WSF_VALUE
- fill path_parameters using `import_raw_path_parameters"
when executing the route
- reset to previous value with reset_path_parameters (..),
just in case the request is executed via severals routes.
This commit is contained in:
@@ -43,6 +43,24 @@ feature -- Access
|
||||
|
||||
uri_template_match: URI_TEMPLATE_MATCH_RESULT
|
||||
|
||||
feature -- Environment
|
||||
|
||||
old_path_parameters: detachable ITERABLE [WSF_VALUE]
|
||||
|
||||
apply (req: WSF_REQUEST)
|
||||
-- <Precursor>
|
||||
do
|
||||
old_path_parameters := req.path_parameters
|
||||
req.import_raw_path_parameters (uri_template_match.path_variables)
|
||||
end
|
||||
|
||||
revert (req: WSF_REQUEST)
|
||||
-- <Precursor>
|
||||
do
|
||||
if attached old_path_parameters as vals then
|
||||
req.reset_path_parameters (vals)
|
||||
end
|
||||
end
|
||||
|
||||
feature -- Item
|
||||
|
||||
|
||||
Reference in New Issue
Block a user