An HTTP library...
in
Library and Tool Development
•
2 years ago
Hello,
I've been teaching a class using Processing, and have created an HTTP library for my students that you can download here:
I've tried my best to create as "Processing-like" an interface to everything- feedback is welcome, and the source is available on github. So far, the library supports:
- GET requests, including formatting/encoding query string parameters
- POST requests, including multipart form data file uploads
- OAuth request signing
- Parsing the response data as XML or JSON
Requests are dispatched in the background, and responses are sent back by invoking a callback function, serialized on the main draw loop.
There's a link to a wiki page for examples, so far I've posted a number of Twitter API examples. Contributions are welcome!
One last thing for other library developers- I noticed that some of my students got intimidated by reading standard Javadoc output, so I created a custom doclet that generates documentation that is formatted in the same way as the Processing reference:
It's not well documented right now, but available for anyone who is interested...
Francis
2