spinframework / spinframework/spin-rust-sdk
Support multiple headers with the same header name
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 35
- Forks
- 23
- Avg merge
- 37m
- Merged PRs (30d)
- 1
Description
HTTP headers can be duplicated where a single logical header name has multiple values. This is why wasi-http returns a list of header values when you query for a given header name. The SDK papers over this and takes the last value it sees as the only value for the header.
Unfortunately solving this issue would be a breaking change as the SDK exposes this fact to users. For example, here.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start with the header exposure in src/http.rs at lines 367-372 and compare it with wasi-http's list-valued header definition linked in the issue. Determine the intended breaking API shape and how duplicated values should be represented; done means the SDK no longer reduces a header name to only its last value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100