peritor/happening

Streaming on put

Opened this issue · 3 comments

Hi,

Is it possible to stream a file on put requests? Like supported by em-http:

http = EventMachine::HttpRequest.new('http://www.website.com/').post :file => 'largefile.txt'

I've been trying to patch it but cant get it to work. This would be useful to avoid buffer a large file into memory.

There is a bug with the underlying em-http-request gem:
igrigorik/em-http-request#176

Once it's fixed I'm going to request a pull on my fork with streaming put support.

jtoy commented

this has been fixed: igrigorik/em-http-request#176

and the pull has been requested: #17