Method: BlobHelper.segmented_blob

Defined in:
lib/deltacloud/helpers/blob_stream_helper.rb

.segmented_blob(request_context) ⇒ Object

in the following segment* methods, using context.env rather than context.params so it works for both Thin and Sinatra request objects (streaming)



79
80
81
82
# File 'lib/deltacloud/helpers/blob_stream_helper.rb', line 79

def self.segmented_blob(request_context)
  return true if (request_context.env["HTTP_X_DELTACLOUD_BLOBTYPE"] == 'segmented' || request_context.env["QUERY_STRING"].match(/blob_type=segmented/))
  false
end