I think the problem is: If you it call like
http.post("<someaddress>", { xy="Hello World!" } )
they would need to pass a TABLE as argument to a JAVA METHOD. And for some reason they don't want to implement it.
But we don't necessarily need to pass the header properties as a table. Shouldn't it be possible to provide the header properties as a sequence of arguments rather than an array/table? Like so:
http.post("<someaddress>", "<post data>", "<header property 1>", "<header property 2>", "<header property 3>" )
Then, Java-side, we simply look if there are more than two arguments, and if there are, we iterate through them and set the HTTP header properties as given.
I mean, isn't that basically what we can even do with the peripheral API already? I.e. to read a sequence of Lua arguments into a Java Object array?
I haven't looked at the code for the HTTP API yet, so I don't know if it is handled differently there than the peripheral API does.^^
It is planned, we've just not done it yet.
That's nice to know, thx for the info. :)/>