Skip to content

feat: add structured X-Client-Info header#63

Open
Krishnanand-G wants to merge 1 commit into
supabase-community:mainfrom
Krishnanand-G:feat/x-client-info-header-62
Open

feat: add structured X-Client-Info header#63
Krishnanand-G wants to merge 1 commit into
supabase-community:mainfrom
Krishnanand-G:feat/x-client-info-header-62

Conversation

@Krishnanand-G

@Krishnanand-G Krishnanand-G commented Jun 29, 2026

Copy link
Copy Markdown

Summary

Closes #62.

Implements the structured X-Client-Info header per the Supabase SDK spec:

supabase-go/<version>; platform=<GOOS>; runtime=go; runtime-version=<semver>
  • Sets the header on client creation for all subclients (rest, storage, functions)
  • Does not overwrite a user-supplied X-Client-Info (case-insensitive check)
  • Omits platform-version when not available without adding new dependencies

Test plan

  • go test -run TestBuildXClientInfo|TestApplyXClientInfo -v .
  • go vet ./...

@Krishnanand-G Krishnanand-G force-pushed the feat/x-client-info-header-62 branch 2 times, most recently from 6f36f8c to c5892d8 Compare June 29, 2026 06:23
@Krishnanand-G Krishnanand-G force-pushed the feat/x-client-info-header-62 branch from c5892d8 to e3bf9bc Compare June 29, 2026 06:24
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.

feat: implement structured X-Client-Info header

1 participant