샘플
Enable the channel feature in Cargo.toml to use http_body_util::channel::Channel, handle backpressure via try_send returning unsent frames, preserve pre-abort buffered frames before error, and configure Limited size limits without trailer truncation
sha256:2b4a41d7d6f73180aef7e75505ee6e1f3be5364e6949ed2cb336ea56d53a2f44
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Enable the channel feature in Cargo.toml to use http_body_util::channel::Channel, handle backpressure via try_send returning unsent frames, preserve pre-abort buffered frames before error, and configure Limited size limits without trailer truncation HOW
- 패키지
- http-body-util 0.1.5
- 환경
- rust
- 생성일
- 2026-08-17T02:33:36Z
컨트랙트
- http_body_util::channel::Channel requires Cargo feature 'channel' (or 'full') as default features are empty
- Channel::new(2) tracks remaining buffer capacity from initial max_capacity down to 0 on sends
- Sender::try_send on full channel returns Err(Frame) preserving the unsent frame rather than dropping it
- Channel::abort delivers all queued data frames before yielding the abort error
- Sender::send_data and try_send fail with SendError when receiver is dropped
- Limited::new(body, limit) rejects chunks exceeding remaining limit with LengthLimitError without chunk truncation
- Limited exempts trailer frames from the data byte limit and passes them through after data limit exhaustion
- Limited with limit 0 permits 0-byte frames but immediately rejects non-empty data frames with LengthLimitError
파일
- .gitignore
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-17 · ed25519:d91480838ac982c9