Skip to content

Support custom request headers #55

@Dacello

Description

@Dacello

Currently, it seems like request headers for REST API calls have headers hardcoded, e.g. here when calling put_blob

I would like to add additional headers, such as x-ms-blob-content-md5 which allows sending an MD5 hash for added verification.

Resolved: Additionally, get_blob returns simply {:ok, blob} but we need the response headers as well. In my case its because there is a Content-MD5 header that can be used to enforce upload uniqueness.
Just use Blob.head_blob

https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob?tabs=microsoft-entra-id#request-headers-all-blob-types
https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob?tabs=microsoft-entra-id#request-headers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions