WebAssembly / WebAssembly/WASI
Consider specifying what should happen when sending a `request` with `path-with-query: none` and `authority` set
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.8k
- Forks
- 333
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 3
Description
In the case of path-with-query, the spec defines none as:
When
none, this represents an empty Path and empty Query.
This suggests that none and some("") denote the same state. However, by writing tests for client.send, they resolve differently (using wasmtime v46)
sendwithset-path-with-query(none), returnsErr(HTTP-request-URI-invalid)sendwithset-path-with-query(some("")), returns200, sincesome(""), resolves as/
Given the definition above, the natural expectation is that none is handled the same way as ""; however, given the current mismatch in behavior, I think it's worth clarifying in the spec:
- The meaning of
noneforpath-with-queryand the resolution mechanism. - The relationship with
authority: the spec does not define the validity ofpath-with-queryrelative to the presence ofauthority, however, some implementations do (e.g., https://github.com/bytecodealliance/wasmtime/blob/main/crates/wasi-http/src/p3/request.rs#L337)
Related:
Contributor 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.
Research direction
Start with the path-with-query definition and the client.send behavior described in the issue, then compare the Wasmtime implementation at crates/wasi-http/src/p3/request.rs with related issues 780 and 11780. Done means the specification clearly defines none, its resolution with authority, and the expected validity and request behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, wasm
- Domain
- documentation, networking
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100