laforge submitted this change.
library/HTTP_Adapter: clarify response template restriction
Change-Id: I1a5ee842c30de9ec22d9e375f6b1b24b3eaee1e0
---
M library/HTTP_Adapter.ttcn
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/library/HTTP_Adapter.ttcn b/library/HTTP_Adapter.ttcn
index 8f15958..161ca23 100644
--- a/library/HTTP_Adapter.ttcn
+++ b/library/HTTP_Adapter.ttcn
@@ -153,7 +153,7 @@
}
}
-template HTTPMessage tr_HTTP_Resp(template integer sts := ?) := {
+template (present) HTTPMessage tr_HTTP_Resp(template integer sts := ?) := {
response := {
client_id := ?,
version_major := ?,
@@ -165,7 +165,7 @@
}
};
-template HTTPMessage tr_HTTP_Resp_Bin(template integer sts := ?) := {
+template (present) HTTPMessage tr_HTTP_Resp_Bin(template integer sts := ?) := {
response_binary := {
client_id := ?,
version_major := ?,
@@ -177,7 +177,7 @@
}
};
-template HTTPMessage tr_HTTP_Resp2xx := tr_HTTP_Resp((200..299));
+template (present) HTTPMessage tr_HTTP_Resp2xx := tr_HTTP_Resp((200..299));
function f_http_tx_request(charstring url, charstring method := "GET",
template (omit) charstring body := omit,
@@ -246,7 +246,7 @@
}
}
-function f_http_rx_response(template HTTPMessage exp := tr_HTTP_Resp2xx,
+function f_http_rx_response(template (present) HTTPMessage exp := tr_HTTP_Resp2xx,
float tout := 2.0,
template (omit) integer client_id := omit,
boolean keep_connection := false)
@@ -282,7 +282,7 @@
template (omit) charstring body := omit,
template (omit) octetstring binary_body := omit,
charstring content_type := "application/json",
- template HTTPMessage exp := tr_HTTP_Resp2xx,
+ template (present) HTTPMessage exp := tr_HTTP_Resp2xx,
float tout := 2.0, HeaderLines custom_hdr := { },
template (omit) integer client_id := omit,
boolean keep_connection := false,
To view, visit change 42436. To unsubscribe, or for help writing mail filters, visit settings.