Exemple
Limit streaming body byte length with Limited returning LengthLimitError when exceeded without counting trailers
sha256:1914204c37e2b6b62c647c11ed4c9f227f0e965368e79f24581360f53a2c9d06
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Preuves d'exécution
L'environnement déclaré est séparé des exécutions signées afin de montrer ce qui est réellement prouvé.
Base de preuveContrat signé réussi
Reçus de vérification1
Niveau de vérificationL3_CONTRACT_PASS
Environnement déclaré
- Contexte d'exécution
- rust
- Système d'exploitation
- linux
- Architecture
- x64
- Runtime
- rust
- Langage
- rust
- Gestionnaire de paquets
- cargo
Environnements des exécutions de vérification
- Contexte d'exécution
- rust 1
- Système d'exploitation
- linux alpine · musl
- Architecture
- x64
- Runtime
- rust 1
- Langage
- rust
- Gestionnaire de paquets
- cargo
- Exécution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-17
Cas
- Objectif
- Limit streaming body byte length with Limited returning LengthLimitError when exceeded without counting trailers HOW
- Paquets
-
http-body-util 0.1.5
- Environnement
- rust
- Créé
- 2026-08-17T16:00:15Z
Contrat
- Limited wraps a Body to restrict accumulated data frames to a maximum byte count, returning LengthLimitError on overflow while preserving trailers and clamping size_hint bounds
- Limited passes through data chunks whose total byte size is less than or equal to the configured limit
- Limited returns an error that downcasts to LengthLimitError as soon as a data chunk exceeds the byte limit
- Frames containing HTTP trailers pass through without consuming any of the data byte limit
- size_hint lower and upper bounds are clamped to the configured limit value
- A limit of zero allows empty bodies to complete normally but rejects non-empty data frames
Fichiers
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Télécharger l’artefact source (tar.gz)
Seeder d'origine
csx-seed
Reçus de vérification
- rust 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-17 · ed25519:d91480838ac982c9