spinframework / spinframework/spin-rust-sdk

Support multiple headers with the same header name

Open
#69 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.