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
8d871a9a
Commit
8d871a9a
authored
May 07, 2019
by
Yann Garcia
Browse files
Add JSON support for STF569_MEC
parent
5732daf6
Changes
4
Hide whitespace changes
Inline
Side-by-side
ttcn/Http/LibItsHttp_MessageBodyTypes.ttcn
View file @
8d871a9a
...
...
@@ -2,6 +2,7 @@ module LibItsHttp_MessageBodyTypes {
// LibHttp
import
from
LibItsHttp_XmlMessageBodyTypes
all
;
import
from
LibItsHttp_JsonMessageBodyTypes
all
;
import
from
LibItsHttp_BinaryMessageBodyTypes
all
;
type
charstring
HtmlBody
;
...
...
@@ -12,6 +13,7 @@ module LibItsHttp_MessageBodyTypes {
BinaryBody
binary_body
,
HtmlBody
html_body
,
XmlBody
xml_body
,
JsonBody
json_body
,
TextBody
text_body
}
with
{
variant
""
...
...
ttcn/Http/LibItsHttp_Templates.ttcn
View file @
8d871a9a
...
...
@@ -15,6 +15,7 @@ module LibItsHttp_Templates {
import
from
LibItsHttp_TypesAndValues
all
;
import
from
LibItsHttp_MessageBodyTypes
all
;
import
from
LibItsHttp_XmlMessageBodyTypes
all
;
import
from
LibItsHttp_JsonMessageBodyTypes
all
;
import
from
LibItsHttp_BinaryMessageBodyTypes
all
;
group
http_messages
{
...
...
@@ -178,6 +179,22 @@ module LibItsHttp_Templates {
}
// End of group http_xml_body
group
http_json_body
{
template
(
value
)
HttpMessageBody
m_http_message_body_json
(
in
template
(
value
)
JsonBody
p_json_body
)
:=
{
json_body
:=
p_json_body
}
// End of template m_http_message_body_json
template
(
present
)
HttpMessageBody
mw_http_message_body_json
(
template
(
present
)
JsonBody
p_json_body
:=
?
)
:=
{
json_body
:=
p_json_body
}
// End of template mw_http_message_body_json
}
// End of group http_json_body
group
http_binary_body
{
template
(
value
)
HttpMessageBody
m_http_message_body_binary
(
...
...
ttcn/Http/LibItsHttp_TypesAndValues.ttcn
View file @
8d871a9a
...
...
@@ -13,7 +13,6 @@ module LibItsHttp_TypesAndValues {
// LibHttp
import
from
LibItsHttp_MessageBodyTypes
all
;
import
from
LibItsHttp_XmlMessageBodyTypes
all
;
import
from
LibItsHttp_Pics
all
;
const
charstring
c_header_host
:=
"Host"
;
...
...
ttcn/Http/LibItsHttp_XmlMessageBodyTypes.ttcn
View file @
8d871a9a
module
LibItsHttp_XmlMessageBodyTypes
{
/**
* This file volontary contains a trivial declaration of the type XmlBod
u
.
* This file volontary contains a trivial declaration of the type XmlBod
y
.
* In accordance with your TTCN-3 module LibItsHttp_XMLTypes, you have to change the XmlBody typing.
*/
// TODO Add here your custom RFCs import
...
...
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