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:
@@ -17,10 +17,12 @@ feature -- Execution
|
||||
|
||||
launch
|
||||
local
|
||||
env: EWSGI_ENVIRONMENT_VARIABLES
|
||||
req: EWSGI_REQUEST_FROM_TABLE
|
||||
res: EWSGI_RESPONSE_STREAM_BUFFER
|
||||
do
|
||||
create env.make_with_variables ((create {EXECUTION_ENVIRONMENT}).starting_environment_variables)
|
||||
application.process (env, create {GW_CGI_INPUT_STREAM}.make, create {GW_CGI_OUTPUT_STREAM}.make)
|
||||
create req.make ((create {EXECUTION_ENVIRONMENT}).starting_environment_variables, create {GW_CGI_INPUT_STREAM}.make)
|
||||
create res.make (create {GW_CGI_OUTPUT_STREAM}.make)
|
||||
application.process (req, res)
|
||||
end
|
||||
|
||||
note
|
||||
|
||||
@@ -46,10 +46,12 @@ feature -- Execution
|
||||
|
||||
process_fcgi_request (vars: HASH_TABLE [STRING, STRING]; a_input: like input; a_output: like output)
|
||||
local
|
||||
gw_env: EWSGI_ENVIRONMENT_VARIABLES
|
||||
req: EWSGI_REQUEST_FROM_TABLE
|
||||
res: EWSGI_RESPONSE_STREAM_BUFFER
|
||||
do
|
||||
create gw_env.make_with_variables (vars)
|
||||
application.process (gw_env, a_input, a_output)
|
||||
create req.make (vars, a_input)
|
||||
create res.make (a_output)
|
||||
application.process (req, res)
|
||||
end
|
||||
|
||||
feature -- Input/Output
|
||||
|
||||
@@ -73,11 +73,13 @@ feature -- Server
|
||||
|
||||
process_request (env: HASH_TABLE [STRING, STRING]; a_headers_text: STRING; a_input: HTTP_INPUT_STREAM; a_output: HTTP_OUTPUT_STREAM)
|
||||
local
|
||||
gw_env: EWSGI_ENVIRONMENT_VARIABLES
|
||||
req: EWSGI_REQUEST_FROM_TABLE
|
||||
res: EWSGI_RESPONSE_STREAM_BUFFER
|
||||
do
|
||||
create gw_env.make_with_variables (env)
|
||||
gw_env.set_variable ("RAW_HEADER_DATA", a_headers_text)
|
||||
application.process (gw_env, create {GW_NINO_INPUT_STREAM}.make (a_input), create {GW_NINO_OUTPUT_STREAM}.make (a_output))
|
||||
create req.make (env, create {GW_NINO_INPUT_STREAM}.make (a_input))
|
||||
create res.make (create {GW_NINO_OUTPUT_STREAM}.make (a_output))
|
||||
req.set_meta_parameter ("RAW_HEADER_DATA", a_headers_text)
|
||||
application.execute (req, res)
|
||||
end
|
||||
|
||||
note
|
||||
|
||||
Reference in New Issue
Block a user