サンプル
Handle http-body-util Collected body aggregation, to_bytes conversion, trailer inspection order, and Infallible error boxing
sha256:c9718cb574b223b501bc0543170c23d73dfe9db56bda6c876822d6dfe6c1b005
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Handle http-body-util Collected body aggregation, to_bytes conversion, trailer inspection order, and Infallible error boxing HOW
- パッケージ
- http-body-util 0.1.5
- 環境
- rust
- 作成日
- 2026-08-17T02:33:40Z
コントラクト
- Collected::aggregate().chunk() yields only the first frame chunk on multi-frame bodies, not the entire contiguous payload
- Collected::to_bytes() consumes Collected by value and concatenates all data frames into a single Bytes buffer
- Collected::trailers() borrows Collected and must be inspected before to_bytes() consumes the instance
- Full and Empty bodies have Infallible error types requiring map_err to construct heterogeneous BoxBody with dynamic error types
- Limited returns a boxed LengthLimitError when accumulated body bytes exceed the configured limit
ファイル
- .gitignore
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
- tests/contract.rs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-17 · ed25519:d91480838ac982c9