class AzureBlob::Client
def append_blob_block(key, content, options = {})
Will ensure integrity of the upload. The checksum must be a base64 digest. Can be produced with +OpenSSL::Digest::MD5.base64digest+.
[+:content_md5+]
Options:
Calls to {Append Block}[https://learn.microsoft.com/en-us/rest/api/storageservices/append-block]
Append a block to an Append Blob
def append_blob_block(key, content, options = {}) uri = generate_uri("#{container}/#{key}") uri.query = URI.encode_www_form(comp: "appendblock") headers = { "Content-Length": content.size, "Content-Type": options[:content_type], "Content-MD5": options[:content_md5], } Http.new(uri, headers, signer:).put(content) end