Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-2.24] Add support for custom headers for REST via config. (#5104) #5111

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

KiterLuc
Copy link
Contributor

Backport 6539f14 from #5104.


TYPE: CONFIG
DESC: Add rest.custom_headers.* config option to set custom headers on REST requests.

[SC-49141](https://app.shortcut.com/tiledb-inc/story/49141/add-support-for-custom-rest-headers-via-config)

Similar to S3 custom header support (#4400) this PR adds support for
custom headers in REST request. This allows users to set header via a
config parameter instead of the current `tildb_context_set_tag`. The
context set tag does not work in all cases because its not always
possible to use the same context, i.e SOMA and VCF python APIs can't
pass a TileDB-Py ctx to their respective C++ code.

Big thanks to @Shelnutt2 for implementing this. I added a test and
documentation.

---
TYPE: CONFIG
DESC: Add `rest.custom_headers.*` config option to set custom headers on
REST requests.

---------

Co-authored-by: Seth Shelnutt <seth@tiledb.io>
Co-authored-by: KiterLuc <67824247+KiterLuc@users.noreply.github.com>
Co-authored-by: eric-hughes-tiledb <82400964+eric-hughes-tiledb@users.noreply.github.com>
Co-authored-by: Luc Rancourt <lucrancourt@gmail.com>
@KiterLuc KiterLuc merged commit 1bc4945 into release-2.24 Jun 19, 2024
60 checks passed
@KiterLuc KiterLuc deleted the backport-5104-to-release-2.24 branch June 19, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants