Merged REQUEST and ENVIRONMENT into REQUEST
renamed ENVIRONMENT_NAMES into META_NAMES better usage of READABLE_STRING_GENERAL, and other strings abstract RESPONSE_BUFFER in implementation of EWSGI for the implementation, inheriting from deferred specification (more to come later)
This commit is contained in:
@@ -28,9 +28,9 @@ feature -- Access
|
||||
s: detachable STRING
|
||||
i,n: INTEGER
|
||||
do
|
||||
Result := request.environment.content_type
|
||||
Result := request.content_type
|
||||
if Result = Void then
|
||||
s := request.environment.http_accept
|
||||
s := request.http_accept
|
||||
if s /= Void then
|
||||
if attached accepted_content_types (request) as l_accept_lst then
|
||||
from
|
||||
@@ -61,18 +61,18 @@ feature -- Access
|
||||
|
||||
feature -- Query
|
||||
|
||||
path_parameter (a_name: STRING): detachable STRING_32
|
||||
path_parameter (a_name: STRING): detachable READABLE_STRING_32
|
||||
-- Parameter value for path variable `a_name'
|
||||
deferred
|
||||
end
|
||||
|
||||
query_parameter (a_name: STRING): detachable STRING_32
|
||||
query_parameter (a_name: STRING): detachable READABLE_STRING_32
|
||||
-- Parameter value for query variable `a_name'
|
||||
--| i.e after the ? character
|
||||
deferred
|
||||
end
|
||||
|
||||
parameter (a_name: STRING): detachable STRING_32
|
||||
parameter (a_name: STRING): detachable READABLE_STRING_32
|
||||
-- Any parameter value for variable `a_name'
|
||||
-- URI template parameter and query parameters
|
||||
do
|
||||
|
||||
@@ -27,7 +27,7 @@ feature -- Query
|
||||
do
|
||||
end
|
||||
|
||||
query_parameter (a_name: STRING): detachable STRING_32
|
||||
query_parameter (a_name: STRING): detachable READABLE_STRING_32
|
||||
do
|
||||
Result := request.parameter (a_name)
|
||||
end
|
||||
|
||||
@@ -31,12 +31,12 @@ feature -- Access
|
||||
|
||||
feature -- Query
|
||||
|
||||
path_parameter (a_name: STRING): detachable STRING_32
|
||||
path_parameter (a_name: STRING): detachable READABLE_STRING_32
|
||||
do
|
||||
Result := uri_template_match.url_decoded_path_variable (a_name)
|
||||
end
|
||||
|
||||
query_parameter (a_name: STRING): detachable STRING_32
|
||||
query_parameter (a_name: STRING): detachable READABLE_STRING_32
|
||||
do
|
||||
Result := uri_template_match.url_decoded_query_variable (a_name)
|
||||
if Result = Void then
|
||||
|
||||
Reference in New Issue
Block a user