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
4edb6ec9
Commit
4edb6ec9
authored
Jul 22, 2021
by
YannGarcia
Browse files
Add HTTP header extensions via Pixits
parent
f9eefafe
Changes
3
Hide whitespace changes
Inline
Side-by-side
ttcn/Http/LibItsHttp_Functions.ttcn
View file @
4edb6ec9
...
...
@@ -8,6 +8,7 @@ module LibItsHttp_Functions {
// LibHttp
import
from
LibItsHttp_TypesAndValues
all
;
import
from
LibItsHttp_Pics
all
;
import
from
LibItsHttp_Pixits
all
;
import
from
LibItsHttp_TestSystem
all
;
group
http_preambles
{
...
...
@@ -71,6 +72,9 @@ module LibItsHttp_Functions {
v_i
:=
v_i
+
1
;
}
//p_headers[v_i] := { c_header_accept, { "application/x-its-response" } };
if
(
lengthof
(
PX_ADDITIONAL_HTTP_HEADERS_KEYS
)
!=
0
)
{
f_set_headers_list
(
PX_ADDITIONAL_HTTP_HEADERS_KEYS
,
PX_ADDITIONAL_HTTP_HEADERS_VALUES
,
p_headers
);
}
}
// End of function f_init_default_headers_list
function
f_set_headers_list
(
...
...
ttcn/Http/LibItsHttp_Pixits.ttcn
0 → 100644
View file @
4edb6ec9
module
LibItsHttp_Pixits
{
import
from
LibItsHttp_TypesAndValues
all
;
modulepar
charstring_list
PX_ADDITIONAL_HTTP_HEADERS_KEYS
:=
{
};
modulepar
charstring_list
PX_ADDITIONAL_HTTP_HEADERS_VALUES
:=
{
};
}
// End of module LibItsHttp_Pixits
ttcn/Http/module.mk
View file @
4edb6ec9
...
...
@@ -8,6 +8,7 @@ sources := LibItsHttp_BinaryMessageBodyTypes.ttcn \
LibItsHttp_JsonTemplates.ttcn
\
LibItsHttp_MessageBodyTypes.ttcn
\
LibItsHttp_Pics.ttcn
\
LibItsHttp_Pixits.ttcn
\
LibItsHttp_Templates.ttcn
\
LibItsHttp_TestSystem.ttcn
\
LibItsHttp_TypesAndValues.ttcn
\
...
...
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