HTTP Request Gadget
I posted this in response to another Idea that was suggested however I thought it may strike up a discussion being in it's own thread.
HTTP Request Gadget
A HTTP Request gadget could open a whole new world of possibilities. The gadget could be as simple as a text field for the URL to request, a toggle to choose between GET/POST method, a timeout in milliseconds with sensible max value default and a single fat wire input.
The output could be another fat wire, this would limit request payloads and response bodies to be formatted as an array of up to 8 numbers, anything else returned from the server would fire a signal from a bad response output node (so we can show custom error text widget if server is down for example).
I imagine it could open up some cool IoT projects, I could adjust the colour or dim my studio lights, read real world sensor information (temperature, humidity, water levels etc...) and present that information in amazing ways with dreams just by being able to send and retrieve eight values mixed with a timer for periodic updates. 🤯
Even if we get multiplayer in a future update with realtime sockets, a HTTP request gadget would still be an amazing addition.
-
yes, but what would you be able to do with a json object in dreams? there's no way to even remotely use strings/any non-number type yet so we might have to try and get that in first.
-
DoomsickIe asks:
what would you be able to do with a json object in dreams?
but Hendore already answers this:
this would limit request payloads and response bodies to be formatted as an array of up to 8 numbers, anything else returned from the server would fire a signal from a bad response output node
i.e. the response isn't going to be a JSON object - or at least if it is, its content's going to be restricted to an array of 8 numbers that the gadget can convert to an 8 number fat wire that other Dreams gadgets can use.
But this idea has other problems. If you allow creations in Dreams to connect to random HTTP servers on the Internet, policing it for things like phishing and gambling is going to be a nightmare.
-
Ah, didn't see that. What you said is also true, there's not a great way to moderate stuff like that. Best they could do is force HTTPS
-
Gets my vote but sadly it will never happen.
Please sign in to leave a comment.