Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TTCN-3 Libraries
LibIts
Commits
fcbef463
Commit
fcbef463
authored
Jan 18, 2019
by
Yann Garcia
Browse files
Start PSAP tests
parent
4be38c82
Changes
1
Hide whitespace changes
Inline
Side-by-side
ttcn/Http/LibItsHttp_Templates.ttcn
View file @
fcbef463
...
...
@@ -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
:=
?
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment