Description of the problem / feature request:
Allow extra request headers to be passed to http_archive / http_file
Feature requests: what underlying problem are you trying to solve with this feature?
In order to download files from private Azure Storage, clients need to provide an OAuth2 token (which can be done via auth_patterns and a netrc file) and additionally set an x-ms-version header.
Docs: https://docs.microsoft.com/en-us/rest/api/storageservices/authorize-with-azure-active-directory
What operating system are you running Bazel on?
Ubuntu Linux 18.04
What's the output of bazel info release?
release 4.2.1
Have you found anything relevant by searching the web?
We checked if this might be possible through bazel-skylib or repository_ctx.download(_and_extract) but it does not seem so.
Description of the problem / feature request:
Allow extra request headers to be passed to
http_archive/http_fileFeature requests: what underlying problem are you trying to solve with this feature?
In order to download files from private Azure Storage, clients need to provide an OAuth2 token (which can be done via
auth_patternsand anetrcfile) and additionally set anx-ms-versionheader.Docs: https://docs.microsoft.com/en-us/rest/api/storageservices/authorize-with-azure-active-directory
What operating system are you running Bazel on?
Ubuntu Linux 18.04
What's the output of
bazel info release?release 4.2.1
Have you found anything relevant by searching the web?
We checked if this might be possible through bazel-skylib or
repository_ctx.download(_and_extract)but it does not seem so.