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 User-Agent header #5398

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Conversation

amckinney
Copy link
Member

This adds support for sending the User-Agent header in the Go SDK. Note that this requires updating the fern CLI to include the package information required to generate the IR's UserAgent value.

Go packages are uniquely identified by their full module path, so the User-Agent header is generated in the <module>/<version> format, e.g.

User-Agent: github.com/acme/acme-go/1.0.0

@amckinney amckinney requested a review from dsinghvi as a code owner December 12, 2024 15:56
Copy link

🌿 Preview your docs: https://fern-preview-b838abda-4b19-4943-8935-1d67b83824e5.docs.buildwithfern.com/learn

@amckinney amckinney merged commit 186588d into main Dec 12, 2024
55 checks passed
@amckinney amckinney deleted the amckinney/go/user-agent branch December 12, 2024 16:07
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