Skip to content

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

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

feat: Send a standard User-Agent: sdk-name/version header#104
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 — Kotlin Android (Flagsmith/flagsmith-kotlin-android-client#83) and Flutter (Flagsmith/flagsmith-flutter-client#85) already ship theirs. The version strategy follows the release-please approach decided during review of #95 (#95 (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 #95
Closes #88

Review effort: 1/5

emyller and others added 2 commits April 14, 2026 19:34
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 23:13
@emyller emyller requested review from Zaimwa9 and removed request for a team April 14, 2026 23:13
Copy link
Copy Markdown

@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.

Approving (in case not possible) with an improvement to look into

Comment thread FlagsmithClient/Classes/Internal/Router.swift
@emyller emyller merged commit 6bb72dd into main Apr 15, 2026
3 checks passed
@emyller emyller deleted the feat/user-agent-header branch April 15, 2026 16:50
@emyller emyller mentioned this pull request Apr 15, 2026
7 tasks
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