GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
HTTP_NO_METHOD_HANDLER
+
Point of view
All features
ANY
HTTP_CONNECTION
All features
class HTTP_NO_METHOD_HANDLER
Summary
top
Default method handler when no handler is returned by the factory. Just answers 501 (Not Implemented).
Direct parents
Inherit list:
HTTP_METHOD_HANDLER
Class invariant
top
response_header /= Void
response_body /= Void
Overview
top
Creation features
{
HTTP_CONNECTION
}
make
(a_uri:
STRING
, a_version:
STRING
)
Initialisation of
Current
using
a_uri
as
uri
and
a_version
as
version
Features
Initialisation
{
HTTP_CONNECTION
}
make
(a_uri:
STRING
, a_version:
STRING
)
Initialisation of
Current
using
a_uri
as
uri
and
a_version
as
version
Implementation
{
HTTP_CONNECTION
}
prepare_ok
:
BOOLEAN
Precursor{
HTTP_METHOD_HANDLER
}
expect_body
:
BOOLEAN
Precursor{
HTTP_METHOD_HANDLER
}
method
:
STRING
Precursor{
HTTP_METHOD_HANDLER
}
add_header
(header:
STRING
)
Precursor{
HTTP_METHOD_HANDLER
}
add_body
(body:
STRING
)
Precursor{
HTTP_METHOD_HANDLER
}
prepare_answer
Precursor{
HTTP_METHOD_HANDLER
}
expect
(events:
EVENTS_SET
)
Precursor{
HTTP_METHOD_HANDLER
}
is_ready
(events:
EVENTS_SET
):
BOOLEAN
Precursor{
HTTP_METHOD_HANDLER
}
Implementation
{
HTTP_CONNECTION
}
code
:
INTEGER_32
the HTTP answer code
begin_answer
Launched before the answer preparation
answer
(a_out_stream:
OUTPUT_STREAM
)
Send the request answer to the
a_out_stream
done
:
BOOLEAN
True when the answer has been send
{}
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
make
(a_uri:
STRING
, a_version:
STRING
)
effective procedure
{
HTTP_CONNECTION
}
top
Initialisation of
Current
using
a_uri
as
uri
and
a_version
as
version
prepare_ok
:
BOOLEAN
is True
constant attribute
{
HTTP_CONNECTION
}
top
Precursor{
HTTP_METHOD_HANDLER
}
expect_body
:
BOOLEAN
is False
constant attribute
{
HTTP_CONNECTION
}
top
Precursor{
HTTP_METHOD_HANDLER
}
method
:
STRING
is "UNKNOWN"
constant attribute
{
HTTP_CONNECTION
}
top
Precursor{
HTTP_METHOD_HANDLER
}
add_header
(header:
STRING
)
effective procedure
{
HTTP_CONNECTION
}
top
Precursor{
HTTP_METHOD_HANDLER
}
add_body
(body:
STRING
)
effective procedure
{
HTTP_CONNECTION
}
top
Precursor{
HTTP_METHOD_HANDLER
}
require
expect_body
prepare_answer
effective procedure
{
HTTP_CONNECTION
}
top
Precursor{
HTTP_METHOD_HANDLER
}
require
not done
expect
(events:
EVENTS_SET
)
effective procedure
{
HTTP_CONNECTION
}
top
Precursor{
HTTP_METHOD_HANDLER
}
is_ready
(events:
EVENTS_SET
):
BOOLEAN
effective function
{
HTTP_CONNECTION
}
top
Precursor{
HTTP_METHOD_HANDLER
}
code
:
INTEGER_32
writable attribute
{
HTTP_CONNECTION
}
top
the HTTP answer code
begin_answer
effective procedure
{
HTTP_CONNECTION
}
top
Launched before the answer preparation
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
done
:
BOOLEAN
writable attribute
{
HTTP_CONNECTION
}
top
True when the answer has been send
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