+
Point of view
All features
deferred class HTTP_METHOD_HANDLER
Summary
Used ton handle an HTTP request.
Direct parents
Insert list: ANY
Known children
Inherit list: HTTP_NO_METHOD_HANDLER
Class invariant
Overview
Features
Implementation
{HTTP_CONNECTION}
{}
code: INTEGER_32
writable attribute
the HTTP answer code
method: STRING
deferred function
the request method (GET, POST, etc.)
begin_answer
effective procedure
Launched before the answer preparation
prepare_answer
deferred procedure
Prepare the answer of the request
require
answer (a_out_stream: OUTPUT_STREAM)
effective procedure
Send the request answer to the a_out_stream
require
add_header (a_header: STRING)
deferred procedure
A request a_header is added
expect_body: BOOLEAN
deferred function
True if the request must have a body.
add_body (a_body: STRING)
deferred procedure
A request a_body is added.
require
prepare_ok: BOOLEAN
deferred function
True if prepare_answer has been completed correctly
done: BOOLEAN
writable attribute
True when the answer has been send
expect (a_events: EVENTS_SET)
deferred procedure
is_ready (a_events: EVENTS_SET): BOOLEAN
deferred function
Current ca be used to manage a request.
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