+
Point of view
All features
class PAPOOSE_ACTION_HANDLER
Summary
Direct parents
Inherit list: HTTP_METHOD_HANDLER
Class invariant
Overview
Creation features
{PAPOOSE_CONNECTION}
Features
{HTTP_CONNECTION}
{}
Implementation
{HTTP_CONNECTION}
{}
method: STRING
writable attribute
the request method (GET, POST, etc.)
expect_body: BOOLEAN
is False
constant attribute
True if the request must have a body.
prepare_answer
effective procedure
Prepare the answer of the request
require
  • not done
add_header (header: STRING)
effective procedure
A request a_header is added
add_body (body: STRING)
effective procedure
A request a_body is added.
require
  • expect_body
prepare_ok: BOOLEAN
is True
constant attribute
True if prepare_answer has been completed correctly
answer (out_stream: OUTPUT_STREAM)
effective procedure
Send the request answer to the a_out_stream
require
  • not done
  • prepare_ok
expect (events: EVENTS_SET)
effective procedure
is_ready (events: EVENTS_SET): BOOLEAN
effective function
Current ca be used to manage a request.
make (a_method: STRING, a_action: PROCEDURE[TUPLE], a_log: PROCEDURE[TUPLE 1[ABSTRACT_STRING]])
effective procedure
{}
require
  • a_method /= Void
  • a_action /= Void
ensure
action: PROCEDURE[TUPLE]
writable attribute
{}
writable attribute
{}
code: INTEGER_32
writable attribute
the HTTP answer code
begin_answer
effective procedure
Launched before the answer preparation
done: BOOLEAN
writable attribute
True when the answer has been send
uri: STRING
writable attribute
{}
the source URI
version: STRING
writable attribute
{}
the http version (1.0, 1.1, etc.)
response_header: FAST_ARRAY[STRING]
writable attribute
{}
Every headers of the request
response_body: STRING
writable attribute
{}
The complete body of the request
default_body
effective procedure
{}
A defaut answer's body
set_content_length
effective procedure
{}
Set the lenght of the answer's body
reason: STRING
effective function
{}
A text representation of the answer code
newline (a_out_stream: OUTPUT_STREAM)
effective procedure
{}
output CRLF