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

feat(go): Add support for environment override headers #4574

Merged
merged 6 commits into from
Sep 7, 2024

Conversation

amckinney
Copy link
Member

This adds support for reading headers from environment variables. The most common example is via a version header (e.g. X-API-Version), like so:

x-fern-global-headers:
  - header: X-API-Version
    name: version
    optional: true
    env: API_VERSION
    type: literal<"2000-01-01">

@amckinney amckinney requested a review from dsinghvi as a code owner September 6, 2024 21:43
@amckinney amckinney merged commit ac52e16 into main Sep 7, 2024
38 checks passed
@amckinney amckinney deleted the amckinney/go/literal-header branch September 7, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants