antiboredom / servi.js

36 stars 6 forks source link

Server Side HTTP Requests #13

Open vanevery opened 9 years ago

vanevery commented 9 years ago

From Dan Shiffman and Robyn Overstreet, regarding making HTTP requests via Servi.js

This might be a nice place to align the p5 and servi APIs if possible, I agree this would be useful. For example would it make sense to just add a loadJSON() method to servi? It could load a local file or a url? And then there's more general http requests.

This discussion is relevant.

https://github.com/lmccart/p5.js/issues/385

robynitp commented 9 years ago

Per our discussion, a proposed approach: https://gist.github.com/robynitp/22d92f158a8df7bf6adf