parity(storage): implement SetHeader method on storage client [from supabase-js]
Maintainers usually reply within 1 day
@Tr00d is already working on this.
Since Jul 1, 2026.
Assessment
This issue has not been assessed yet.
Description
SDK Parity: C# implementation needed
A change was made in supabase-js that needs to be implemented in this repository for SDK parity.
Reference Implementation (supabase-js)
What Changed
A new public setHeader(name, value) method was added to BaseApiClient in storage-js. This allows setting per-request HTTP headers on storage operations.
Code Reference
public setHeader(name: string, value: string): this {
this.headers = { ...this.headers, [name]: value }
return this
}
Implementation Guidance
Expected API Surface (C#)
public StorageFileApi SetHeader(string name, string value)
{
var newHeaders = new Dictionary<string, string>(Headers) { [name] = value };
Headers = newHeaders;
return this;
}
Key Behaviors to Match
- Creates a copy of headers to avoid mutating shared state
- Returns
thisfor method chaining - PascalCase naming per C# conventions
Acceptance Criteria
-
SetHeader(name, value)method implemented on storage client - Headers are copied (not mutated) when setting
- Method chaining supported
- Unit tests cover happy path and edge cases
- Documentation updated
Context
- supabase-js version: v2.95.3
- Parity tracking: This issue was auto-generated by SDK parity analysis
- Related parity issues: SDK-691 (dart), SDK-692 (py), SDK-693 (swift)
Generated with Claude Code /sync-sdk-parity
- Dominant language
- C#
- Stars
- 702
- Forks
- 106
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 51
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from supabase/supabase-csharp
-
OAuth State Error for social providers since Supabase.Gotrue v6.1.0May be free again @Tr00d claimed this 49 days ago, and no pull request is open. Openbug
supabase/supabase-csharp#377 · 4 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Postgres Changes filters are validated as anon because SetAuth is applied after channel joinMay be free again @Tr00d claimed this 62 days ago, and no pull request is open. Openarea: postgrest bug
supabase/supabase-csharp#345 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
parity(functions): never send new-format API key as Authorization Bearer [from supabase-js]May be free again @Tr00d claimed this 87 days ago, and no pull request is open. Openbug parity
supabase/supabase-csharp#279 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
parity(client): unrecognized sb_ API key subtypes are silently accepted, no warning [from supabase-js]May be free again @Tr00d claimed this 87 days ago, and no pull request is open. Openparity
supabase/supabase-csharp#278 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
parity(realtime): add replication_ready broadcast option and system event payload [from supabase-js]May be free again @Tr00d claimed this 101 days ago, and no pull request is open. Openparity
supabase/supabase-csharp#272 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in supabase/supabase-csharp
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
代理地址输入框的示例提示容易被误认为已配置代理Possibly taken @jay23606 claimed this today. Openbug
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
kookxiang/jellyfin-plugin-bangumi#297 ·
Maintainers usually reply within 1 day
-
A numeric literal is parsed in the host's culture, so 1.5 is 15 in a made EXE on a comma-decimal OSOpenbug interpreter silently-wrong small
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day