GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
HTTP_METHOD_HANDLER
+
Point of view
All features
ANY
HTTP_CONNECTION
All features
deferred class HTTP_METHOD_HANDLER
Summary
top
Used ton handle an HTTP request.
Direct parents
Insert list:
ANY
Known children
Inherit list:
HTTP_NO_METHOD_HANDLER
Class invariant
top
response_header
/= Void
response_body
/= Void
Overview
top
Features
Implementation
{
HTTP_CONNECTION
}
code
:
INTEGER_32
the HTTP answer code
method
:
STRING
the request method (GET, POST, etc.)
begin_answer
Launched before the answer preparation
prepare_answer
Prepare the answer of the request
answer
(a_out_stream:
OUTPUT_STREAM
)
Send the request answer to the
a_out_stream
add_header
(a_header:
STRING
)
A request
a_header
is added
expect_body
:
BOOLEAN
True if the request must have a body.
add_body
(a_body:
STRING
)
A request
a_body
is added.
prepare_ok
:
BOOLEAN
True if
prepare_answer
has been completed correctly
done
:
BOOLEAN
True when the answer has been send
expect
(a_events:
EVENTS_SET
)
is_ready
(a_events:
EVENTS_SET
):
BOOLEAN
Current
ca be used to manage a request.
{}
uri
:
STRING
the source URI
version
:
STRING
the http version (1.0, 1.1, etc.)
response_header
:
FAST_ARRAY
[
STRING
]
Every headers of the request
response_body
:
STRING
The complete body of the request
default_body
A defaut answer's body
set_content_length
Set the lenght of the answer's body
reason
:
STRING
A text representation of the answer
code
newline
(a_out_stream:
OUTPUT_STREAM
)
output CRLF
code
:
INTEGER_32
writable attribute
{
HTTP_CONNECTION
}
top
the HTTP answer code
method
:
STRING
deferred function
{
HTTP_CONNECTION
}
top
the request method (GET, POST, etc.)
begin_answer
effective procedure
{
HTTP_CONNECTION
}
top
Launched before the answer preparation
prepare_answer
deferred procedure
{
HTTP_CONNECTION
}
top
Prepare the answer of the request
require
not
done
answer
(a_out_stream:
OUTPUT_STREAM
)
effective procedure
{
HTTP_CONNECTION
}
top
Send the request answer to the
a_out_stream
require
not
done
prepare_ok
add_header
(a_header:
STRING
)
deferred procedure
{
HTTP_CONNECTION
}
top
A request
a_header
is added
expect_body
:
BOOLEAN
deferred function
{
HTTP_CONNECTION
}
top
True if the request must have a body.
add_body
(a_body:
STRING
)
deferred procedure
{
HTTP_CONNECTION
}
top
A request
a_body
is added.
require
expect_body
prepare_ok
:
BOOLEAN
deferred function
{
HTTP_CONNECTION
}
top
True if
prepare_answer
has been completed correctly
done
:
BOOLEAN
writable attribute
{
HTTP_CONNECTION
}
top
True when the answer has been send
expect
(a_events:
EVENTS_SET
)
deferred procedure
{
HTTP_CONNECTION
}
top
is_ready
(a_events:
EVENTS_SET
):
BOOLEAN
deferred function
{
HTTP_CONNECTION
}
top
Current
ca be used to manage a request.
uri
:
STRING
writable attribute
{}
top
the source URI
version
:
STRING
writable attribute
{}
top
the http version (1.0, 1.1, etc.)
response_header
:
FAST_ARRAY
[
STRING
]
writable attribute
{}
top
Every headers of the request
response_body
:
STRING
writable attribute
{}
top
The complete body of the request
default_body
effective procedure
{}
top
A defaut answer's body
set_content_length
effective procedure
{}
top
Set the lenght of the answer's body
reason
:
STRING
effective function
{}
top
A text representation of the answer
code
newline
(a_out_stream:
OUTPUT_STREAM
)
effective procedure
{}
top
output CRLF