Made WGI_VALUE.name as READABLE_STRING_32 .. otherwise it is a pain to manipulate.

Changed return type of meta_variable to be WGI_STRING_VALUE ... since the meta variable can not be anything else.
Made sure REQUEST_URI starts with one and only one slash
Internal implementation: the _table now compares object
Removed SELF variable ... at least for now
Be sure to provide a REQUEST_URI even if the underlying connector does not.
This commit is contained in:
Jocelyn Fiat
2011-09-28 16:41:22 +02:00
parent 34c8cfa427
commit aa20a1423f
5 changed files with 82 additions and 34 deletions

View File

@@ -89,7 +89,7 @@ feature -- Access: extra values
feature -- Access: CGI meta variables
meta_variable (a_name: READABLE_STRING_GENERAL): detachable WGI_VALUE
meta_variable (a_name: READABLE_STRING_GENERAL): detachable WGI_STRING_VALUE
-- Environment variable related to `a_name'
require
a_name_valid: a_name /= Void and then not a_name.is_empty
@@ -102,11 +102,11 @@ feature -- Access: CGI meta variables
a_name_valid: a_name /= Void and then not a_name.is_empty
do
if attached meta_variable (a_name) as val then
Result := val.as_string
Result := val.string
end
end
meta_variables: ITERABLE [WGI_VALUE]
meta_variables: ITERABLE [WGI_STRING_VALUE]
-- These variables are specific to requests made with HTTP.
-- Interpretation of these variables may depend on the value of
-- SERVER_PROTOCOL.