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
)
Features
{
HTTP_CONNECTION
}
prepare_ok
:
BOOLEAN
expect_body
:
BOOLEAN
method
:
STRING
the method
add_header
(header:
STRING
)
add_body
(body:
STRING
)
make
(a_uri:
STRING
, a_version:
STRING
)
prepare_answer
expect
(events:
EVENTS_SET
)
is_ready
(events:
EVENTS_SET
):
BOOLEAN
{
HTTP_CONNECTION
}
code
:
INTEGER_32
the HTTP answer code
begin_answer
answer
(out_stream:
OUTPUT_STREAM
)
done
:
BOOLEAN
{}
uri
:
STRING
the source URI
version
:
STRING
the version
response_header
:
FAST_ARRAY
[
STRING
]
response_body
:
STRING
default_body
set_content_length
reason
:
STRING
newline
(out_stream:
OUTPUT_STREAM
)
output CRLF
prepare_ok
:
BOOLEAN
is True
constant attribute
{
HTTP_CONNECTION
}
top
expect_body
:
BOOLEAN
is False
constant attribute
{
HTTP_CONNECTION
}
top
method
:
STRING
is "UNKNOWN"
constant attribute
{
HTTP_CONNECTION
}
top
the method
add_header
(header:
STRING
)
effective procedure
{
HTTP_CONNECTION
}
top
add_body
(body:
STRING
)
effective procedure
{
HTTP_CONNECTION
}
top
require
expect_body
make
(a_uri:
STRING
, a_version:
STRING
)
effective procedure
{
HTTP_CONNECTION
}
top
prepare_answer
effective procedure
{
HTTP_CONNECTION
}
top
require
not done
expect
(events:
EVENTS_SET
)
effective procedure
{
HTTP_CONNECTION
}
top
is_ready
(events:
EVENTS_SET
):
BOOLEAN
effective function
{
HTTP_CONNECTION
}
top
code
:
INTEGER_32
writable attribute
{
HTTP_CONNECTION
}
top
the HTTP answer code
begin_answer
effective procedure
{
HTTP_CONNECTION
}
top
answer
(out_stream:
OUTPUT_STREAM
)
effective procedure
{
HTTP_CONNECTION
}
top
require
not
done
prepare_ok
done
:
BOOLEAN
writable attribute
{
HTTP_CONNECTION
}
top
uri
:
STRING
writable attribute
{}
top
the source URI
version
:
STRING
writable attribute
{}
top
the version
response_header
:
FAST_ARRAY
[
STRING
]
writable attribute
{}
top
response_body
:
STRING
writable attribute
{}
top
default_body
effective procedure
{}
top
set_content_length
effective procedure
{}
top
reason
:
STRING
effective function
{}
top
newline
(out_stream:
OUTPUT_STREAM
)
effective procedure
{}
top
output CRLF