+
Point of view
All features
class HTTP_GET_HANDLER
Summary
Direct parents
Inherit list: HTTP_METHOD_HANDLER
Class invariant
Overview
Creation features
{HTTP_CONNECTION}
Features
{HTTP_CONNECTION}
{}
{}
Implementation
{HTTP_CONNECTION}
{}
method: STRING
writable attribute
the request method (GET, POST, etc.)
expect_body: BOOLEAN
is True
constant attribute
True if the request must have a body.
prepare_ok: BOOLEAN
writable attribute
True if prepare_answer has been completed correctly
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
make (a_method: STRING, a_uri: STRING, a_version: STRING)
effective procedure
require
  • a_method.is_equal("GET") or else a_method.is_equal("POST")
ensure
expect (events: EVENTS_SET)
effective procedure
is_ready (events: EVENTS_SET): BOOLEAN
effective function
Current ca be used to manage a request.
effective function
{}
ensure
  • Result /= Void implies Result.is_connected
once function
{}
fill_body (f: TEXT_FILE_READ)
effective procedure
{}
code: INTEGER_32
writable attribute
the HTTP answer code
begin_answer
effective procedure
Launched before the answer preparation
answer (a_out_stream: OUTPUT_STREAM)
effective procedure
Send the request answer to the a_out_stream
require
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