Commit 4edb6ec9 authored by YannGarcia's avatar YannGarcia
Browse files

Add HTTP header extensions via Pixits

parent f9eefafe
...@@ -8,6 +8,7 @@ module LibItsHttp_Functions { ...@@ -8,6 +8,7 @@ module LibItsHttp_Functions {
// LibHttp // LibHttp
import from LibItsHttp_TypesAndValues all; import from LibItsHttp_TypesAndValues all;
import from LibItsHttp_Pics all; import from LibItsHttp_Pics all;
import from LibItsHttp_Pixits all;
import from LibItsHttp_TestSystem all; import from LibItsHttp_TestSystem all;
group http_preambles { group http_preambles {
...@@ -71,6 +72,9 @@ module LibItsHttp_Functions { ...@@ -71,6 +72,9 @@ module LibItsHttp_Functions {
v_i := v_i + 1; v_i := v_i + 1;
} }
//p_headers[v_i] := { c_header_accept, { "application/x-its-response" } }; //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 } // End of function f_init_default_headers_list
function f_set_headers_list( function f_set_headers_list(
......
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
...@@ -8,6 +8,7 @@ sources := LibItsHttp_BinaryMessageBodyTypes.ttcn \ ...@@ -8,6 +8,7 @@ sources := LibItsHttp_BinaryMessageBodyTypes.ttcn \
LibItsHttp_JsonTemplates.ttcn \ LibItsHttp_JsonTemplates.ttcn \
LibItsHttp_MessageBodyTypes.ttcn \ LibItsHttp_MessageBodyTypes.ttcn \
LibItsHttp_Pics.ttcn \ LibItsHttp_Pics.ttcn \
LibItsHttp_Pixits.ttcn \
LibItsHttp_Templates.ttcn \ LibItsHttp_Templates.ttcn \
LibItsHttp_TestSystem.ttcn \ LibItsHttp_TestSystem.ttcn \
LibItsHttp_TypesAndValues.ttcn \ LibItsHttp_TypesAndValues.ttcn \
......
Markdown is supported
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