Module | Thin |
In: |
lib/deltacloud/helpers/blob_stream.rb
|
Monkey patch for streaming blobs:
Normally a client will upload a blob to deltacloud and thin will put this into a tempfile. Then deltacloud would stream up to the provider: i.e. client =-->>TEMP_FILE-->> deltacloud =-->>STREAM-->> provider Instead we want to recognise that this is a 'PUT blob' operation and start streaming to the provider as the request is received: i.e. client =-->>STREAM-->> deltacloud =-->>STREAM-->> provider