sitemule/ILEvator

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);