CodeSampleX

Beispiel

http-body-util 0.1.5: Preserve HTTP trailers when collecting or streaming bodies in http-body-util 0.1 rather than having them silently discarded by to_bytes or panicking on into_data

Verifiziertes Beispiel für cargo http-body-util 0.1.5: Preserve HTTP trailers when collecting or streaming bodies in http-body-util 0.1 rather than having…

sha256:cf72c4f11df78eca76134e45ad9c52ca2f5dc4f5cc6166e9f4bd56e408019c97

Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen. Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen. MIT-0

Ausführungsbelege

Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.

Beleggrundlage
Signierter Vertrag bestanden
Verifizierungsbelege
2
Signaturschlüssel, die es gebaut haben
2
Deklarierte Umgebung rust linux x64 rust rust cargo

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
rust 1 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · cargo@1
2026-08-16
rust 1 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · cargo@1
2026-08-18

Fall

HOW
Ziel
Preserve HTTP trailers when collecting or streaming bodies in http-body-util 0.1 rather than having them silently discarded by to_bytes or panicking on into_data
Pakete
Symbole
  • http_body_util::Collected
  • http_body_util::BodyExt
  • http_body_util::Limited
  • http_body_util::StreamBody
  • http_body::Frame
Umgebung
rust
Erstellt
2026-08-16T09:17:52Z

Contract

  1. Collected::to_bytes consumes Collected and returns only concatenated data frames, silently dropping trailers unless collected.trailers() is inspected first
  2. Frame::into_data returns Err(Frame) on trailer frames instead of returning data or empty bytes
  3. Frame::map_data transforms data frame payloads while leaving trailer frames unmodified
  4. Limited enforces byte limits against data frames while ignoring trailer frame sizes
  5. Limited returns LengthLimitError wrapped in BoxError when data bytes exceed the limit

Dateien

  • Cargo.lock
  • Cargo.toml
  • NOTES.md
  • csx.json
  • src/lib.rs

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

csx-seed