Skip to content

feat: Send a standard User-Agent: sdk-name/version header#83

Merged
emyller merged 2 commits intomainfrom
feat/user-agent-header
Apr 15, 2026
Merged

feat: Send a standard User-Agent: sdk-name/version header#83
emyller merged 2 commits intomainfrom
feat/user-agent-header

Conversation

@emyller
Copy link
Copy Markdown
Contributor

@emyller emyller commented Apr 14, 2026

The Flagsmith API cannot currently distinguish which SDK or version is making requests from this client. This is part of a cross-SDK effort to standardize User-Agent headers — iOS (Flagsmith/flagsmith-ios-client#95) and Flutter (Flagsmith/flagsmith-flutter-client#85) already ship theirs. The version strategy follows the same release-please approach decided during review of #77 (#77 (comment)).

Changes

  • Every outbound HTTP request (REST API and real-time) identifies the SDK and its version
  • SDK version stays current automatically after each release

Supersedes #77
Closes #73

Review effort: 1/5

emyller and others added 2 commits April 14, 2026 18:21
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@emyller emyller requested a review from a team as a code owner April 14, 2026 22:02
@emyller emyller requested review from talissoncosta and removed request for a team April 14, 2026 22:02
Copy link
Copy Markdown
Contributor

@Zaimwa9 Zaimwa9 left a comment

Choose a reason for hiding this comment

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

Still approving in case it's not possible to extract the version dynamically

@emyller emyller merged commit 5956f8d into main Apr 15, 2026
3 checks passed
@emyller emyller deleted the feat/user-agent-header branch April 15, 2026 16:49
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.

Send a standard User-Agent: sdk-name/version header

2 participants