Commit fcbef463 authored by Yann Garcia's avatar Yann Garcia
Browse files

Start PSAP tests

parent 4be38c82
......@@ -102,8 +102,20 @@ module LibItsHttp_Templates {
group http_responses {
template (value) Response m_http_response_ok(
in template (value) HttpMessageBody p_body,
in template (value) HeaderLines p_header
) := {
version_major := 1,
version_minor := 1,
statuscode := 200,
statustext := "OK",
header := p_header,
body := p_body
} // End of template m_http_response_ok
template (present) Response mw_http_response_ok(
template (present) HttpMessageBody p_body := ?,
template (present) HttpMessageBody p_body := ?,
template (present) HeaderLines p_header := ?
) := {
version_major := 1,
......@@ -114,6 +126,20 @@ module LibItsHttp_Templates {
body := p_body
} // End of template mw_http_response_ok
template (value) Response m_http_response_ko(
in template (value) HttpMessageBody p_body,
in template (value) HeaderLines p_header,
in template (value) integer p_statuscode := 404,
in template (value) charstring p_statustext := "Not found"
) := {
version_major := 1,
version_minor := 1,
statuscode := p_statuscode,
statustext := p_statustext,
header := p_header,
body := p_body
} // End of template m_http_response_ko
template Response mw_http_response_ko(
template HttpMessageBody p_body := *,
template (present) HeaderLines p_header := ?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment