dsouza/hoauth — pull request #6 by killerswan (2012-04-23 11:27:15+00:00)
Title: Adding multipart/form-data upload support...

This adds the ability to make multipart/form-data POST requests, so that we can do things like upload images to Twitter.

I wanted to get this out while it is on my mind. There are a couple of things I'll revisit soon.

(1) Currently libcurl `HttpPost` does not derive Eq, so I've removed that from `Request`, for the moment. There's a possibility that removing Request's Eq instance breaks something in the test code, which I need to look at, or elsewhere. (It should be trivial for the libcurl maintainers to add Eq to more things, so this is a temporary problem.)

(2) I may also want to modify this to avoid having to import libcurl elsewhere to create requests with multipart payloads (using libcurl's HttpPost and Content types). Are there plans to replace libcurl with another library, for example?