Convenience function for creating a list of HTTP headers
Closed this issue · 1 comments
m1h43l commented
Some functions accept a list (simple list) of HTTP headers. Currently the user cannot create this list because simple list functions are not exposed (would also be difficult to expose because of the namespace issue).
A convenience function for creating such a list would be great.
dcl-s headers pointer;
headers = iv_buildList(
'Accept' : 'application/json' :
'Content-Type' : 'application/vnd.sitemule.order+json+v2'
);
...
iv_freeList(headers);
NielsLiisberg commented
Great idea👍
søn. 11. jun. 2023 kl. 11.17 skrev m1h43l ***@***.***>:
… Some functions accept a list (simple list) of HTTP headers. Currently the
user cannot create this list because simple list functions are not exposed
(would also be difficult to expose because of the namespace issue).
A convenience function for creating such a list would be great.
dcl-s headers pointer;
headers = iv_buildList(
'Accept' : 'application/json' :
'Content-Type' : 'application/vnd.sitemule.order+json+v2'
);
...
iv_freeList(headers);
—
Reply to this email directly, view it on GitHub
<#20>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVIPHT23L4EGRGVUFQRSWDXKWELJANCNFSM6AAAAAAZCG54TI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>