Skip to content

Feature/set http headers #808#819

Merged
XAMPPRocky merged 4 commits intoXAMPPRocky:mainfrom
dmgorsky:feature/set-http-headers-808
Nov 6, 2025
Merged

Feature/set http headers #808#819
XAMPPRocky merged 4 commits intoXAMPPRocky:mainfrom
dmgorsky:feature/set-http-headers-808

Conversation

@dmgorsky
Copy link
Collaborator

proposal for #808

…ml with an array of http headers necessary to add in lib.rs/`build_request()` (created in build.rs; imported with include!)
…ml with an array of http headers necessary to add in lib.rs/`build_request()` (created in build.rs; imported with include!)
@dmgorsky dmgorsky mentioned this pull request Oct 29, 2025
src/lib.rs Outdated
/// ```
/// [package.metadata.github-api]
///
/// set-headers = ["X-GitHub-Api-Version: 2022-11-28", ]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we call this headers instead? TOML is declarative not imperative, so you wouldn't include a verb like "set"

Copy link
Collaborator Author

@dmgorsky dmgorsky Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NP, how can we make the name more descriptive? Like, 'headers to be set', without documentation.
necessary-headers, request-headers.
edit: request-headers 👌

@XAMPPRocky XAMPPRocky merged commit 610775a into XAMPPRocky:main Nov 6, 2025
20 checks passed
@github-actions github-actions bot mentioned this pull request Nov 6, 2025
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.

2 participants