peritor / happening

An EventMachine based S3 client
Other
145 stars 21 forks source link

This allows the get call to return the response so I can stream the data. #9

Closed carlism closed 13 years ago

carlism commented 13 years ago

Here's my example usage:

    item = Happening::S3::Item.new( bucket...
    item.get(:on_error => on_error, :on_success => on_success ).stream do |chunk|
      @crypto.decrypt(chunk) do |data|
        env.stream_send(data)
      end          
    end

Using this in Goliath to decrypt a file from S3.

Thanks Carl

jweiss commented 13 years ago

It would be great if you could add some tests to that commit

carlism commented 13 years ago

ok, I've added tests on the request and item objects.

jweiss commented 13 years ago

merged and pushed 0.2.1 - thanks!