fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/42436?usp=email )


Change subject: library/HTTP_Adapter: clarify response template restriction
......................................................................

library/HTTP_Adapter: clarify response template restriction

Change-Id: I1a5ee842c30de9ec22d9e375f6b1b24b3eaee1e0
---
M library/HTTP_Adapter.ttcn
1 file changed, 5 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/36/42436/1

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 https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/42436?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I1a5ee842c30de9ec22d9e375f6b1b24b3eaee1e0
Gerrit-Change-Number: 42436
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to