[http] deprecate `request-options` `first-byte-timeout`

Đang mở
#962 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@lann đang làm issue này rồi.

Từ ngày 8/10/2026.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust, typescript, wasm
Lĩnh vực
api, networking

Hướng nghiên cứu

Bắt đầu với các định nghĩa tùy chọn yêu cầu trong proposals/http/wit/types.wit, sau đó so sánh hành vi được tham chiếu trong crates/wasi-http/src/default_send_request.rs và packages/preview2-shim/src/browser/http.ts. Xác nhận cách diễn đạt dự kiến về khả năng tương thích và cập nhật đặc tả để việc ngừng sử dụng và hành vi timeout được chấp nhận được ghi lại nhất quán.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

P-http proposal

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\n for HTTP/1.1). The first-byte-timeout instead 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 believe wasmtime-wasi-http and 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.

Ngôn ngữ chính
Rust
Star
5.8k
Fork
339
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của WebAssembly/WASI

Tất cả issue của WebAssembly/WASI

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.