[http] deprecate `request-options` `first-byte-timeout`
@lann 已经在做这个了。
开始于 2026年10月8日。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- rust, typescript, wasm
- 领域
- api, networking
调研方向
从 proposals/http/wit/types.wit 中的请求选项定义开始,然后对比 crates/wasi-http/src/default_send_request.rs 和 packages/preview2-shim/src/browser/http.ts 中引用的行为。确认预期的兼容性措辞,并更新规范,以便一致地记录弃用和可接受的超时行为。
由索引模型根据 Issue 内容生成。
描述
I think we should deprecate first-byte-timeout:
-
For many HTTP clients (including
fetch), the first (non-error) event observable after dispatching a request is the end of response headers (e.g.\r\n\r\nfor HTTP/1.1). Thefirst-byte-timeoutinstead wants to wait for one more byte: "the first byte of the Response body". I'm not familiar with any reason to treat that byte as special. -
End of response headers already has an event: the async return of
response. If someone wants a timeout there they can use a regular timer that races the response. -
The timeout between end of response headers and the first byte of the response body can instead be covered by
between-bytes-timeout. This would technically be a breaking change but I believewasmtime-wasi-httpand jco already behave this way, so I suggest that we just document that both the original spec behavior and the current implementations' behaviors are acceptable.
- 主要语言
- Rust
- 星标
- 5.8k
- 派生
- 339
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
WebAssembly/WASI 的其他 Issue
-
[http] Request and Response's `new` method is reserved in many languages, inconsistent with sockets.未关闭
难度 2/5 1-3 小时 新手友好度 75/100
WebAssembly/WASI#961 · 1 条评论 ·
-
`proposals/http/wit/deps.toml` should list random可能已有人在做 @aiqubits 于 83 天前认领。 未关闭P-http
难度 1/5 1 小时以内 新手友好度 90/100
WebAssembly/WASI#937 ·
-
难度 1/5 1-3 小时 新手友好度 72/100
WebAssembly/WASI#909 ·
-
P-clocks S-inactive
难度 1/5 1 小时以内 新手友好度 68/100
WebAssembly/WASI#687 ·
-
P-random S-inactive
难度 1/5 1 小时以内 新手友好度 75/100
WebAssembly/WASI#701 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
bug rust
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
type: bug
难度 2/5 1-3 小时 新手友好度 67/100
franciscoBSalgueiro/en-croissant#1111 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
oxc-project/oxc-htmlish-parser#34 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
longbridge/nsh#2541 ·
维护者通常 1 天内回复