Attention is currently required from: pespin.
dexter has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36505?usp=email )
Change subject: HTTP_Adapter: allow body to be "omit" ......................................................................
Patch Set 3:
(2 comments)
File library/HTTP_Adapter.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36505/comment/76dfe2ed_b6e9b... PS1, Line 85: msg.request := {
why can't you just do something like: […]
Thanks for the hint, I didn't see this option. I have now done it this way.
The body field is a mandatory field in type record HTTPRequest. When I set it to omit I also get an error. The body field must be present but it can be empty (""). I have the feeling that the API is a bit miss-designed here, but we have to live with that.
File library/HTTP_Adapter.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36505/comment/710f732f_4dbdf... PS2, Line 100: if (ispresent(body)) {
I'm not that sure this ispresent(body) directly on a variable is what you are actually want. […]
yes, I have tested it, but I also think that istemplatekind() is the better option.