feat: add custom headers to search api requests#943
Merged
gadomski merged 14 commits intostac-utils:mainfrom Feb 3, 2026
Merged
feat: add custom headers to search api requests#943gadomski merged 14 commits intostac-utils:mainfrom
gadomski merged 14 commits intostac-utils:mainfrom
Conversation
Contributor
Author
|
I'm not familiar enough with rust ecosystem to interpret the msrv failure. To me this appears to be an issue compiling a third-party crate. If there is something that needs to be addressed for that let me know. |
Member
|
Should be fixed by #944 🤞🏼 |
Merged
gadomski
pushed a commit
that referenced
this pull request
Feb 3, 2026
## 🤖 New release * `stac`: 0.16.1 -> 0.16.2 (✓ API compatible changes) * `stac-duckdb`: 0.3.3 -> 0.3.4 * `stac-io`: 0.2.3 -> 0.2.4 (✓ API compatible changes) * `stac-server`: 0.4.4 -> 0.4.5 (✓ API compatible changes) * `rustac`: 0.2.5 -> 0.2.6 * `pgstac`: 0.4.4 -> 0.4.5 * `stac-validate`: 0.6.3 -> 0.6.4 * `stac-extensions`: 0.1.5 -> 0.1.6 <details><summary><i><b>Changelog</b></i></summary><p> ## `stac` <blockquote> ## [0.16.2](stac-v0.16.1...stac-v0.16.2) - 2026-02-03 ### Other - bump msrv version ([#944](#944)) </blockquote> ## `stac-duckdb` <blockquote> ## [0.3.4](stac-duckdb-v0.3.3...stac-duckdb-v0.3.4) - 2026-02-03 ### Other - bump msrv version ([#944](#944)) </blockquote> ## `stac-io` <blockquote> ## [0.2.4](stac-io-v0.2.3...stac-io-v0.2.4) - 2026-02-03 ### Added - add search_with_headers ([#948](#948)) - add custom headers to search api requests ([#943](#943)) ### Other - bump msrv version ([#944](#944)) </blockquote> ## `stac-server` <blockquote> ## [0.4.5](stac-server-v0.4.4...stac-server-v0.4.5) - 2026-02-03 ### Other - bump msrv version ([#944](#944)) </blockquote> ## `rustac` <blockquote> ## [0.2.6](rustac-v0.2.5...rustac-v0.2.6) - 2026-02-03 ### Added - add search_with_headers ([#948](#948)) - add custom headers to search api requests ([#943](#943)) ### Other - bump msrv version ([#944](#944)) </blockquote> ## `pgstac` <blockquote> ## [0.4.5](pgstac-v0.4.4...pgstac-v0.4.5) - 2026-02-03 ### Other - updated the following local packages: stac </blockquote> ## `stac-validate` <blockquote> ## [0.6.4](stac-validate-v0.6.3...stac-validate-v0.6.4) - 2026-02-03 ### Other - updated the following local packages: stac </blockquote> ## `stac-extensions` <blockquote> ## [0.1.6](stac-extensions-v0.1.5...stac-extensions-v0.1.6) - 2026-02-03 ### Other - updated the following local packages: stac </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). Co-authored-by: stac-utils-release-bot[bot] <249776822+stac-utils-release-bot[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a
--headeroption to the search subcommand which are passed to thereqwest::ClientBuilder::default_headersmethod. The intended use case is to enable the passing of custom headers to requests made by the rustac STAC api client e.g. Authorization headers.This adds a new
ApiClientBuilderstruct which wrapsreqwests::ClientBuilderin order to manage adding creating a Client instance with default headers.I used copilot to help me in my approach.
Checklist
Delete any checklist items that do not apply (e.g. if your change is minor, it may not require documentation updates).
prek run --all-files)