Beispiel
shelf 1.4.2: Configure Cascade status codes and predicate matching to control fall-through handling across Shelf handlers
Verifiziertes Beispiel für pub shelf 1.4.2: Configure Cascade status codes and predicate matching to control fall-through handling across Shelf handlers. Der…
sha256:acb7e1e9660b19531e28dc015de880be8a24b7051a1a8f325784200237413739
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
dart linux x64 dart dart pub
Umgebungen der Verifizierungsläufe
| Umgebung | Contract | Stufen | Lauf |
|---|---|---|---|
| dart 3 · linux debian/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · pub@1 |
2026-08-17 |
| dart 3 · linux debian/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · pub@1 |
2026-08-18 |
Fall
HOW- Ziel
- Configure Cascade status codes and predicate matching to control fall-through handling across Shelf handlers
- Pakete
- Symbole
-
- Cascade
- Cascade.statusCodes
- Cascade.shouldCascade
- Umgebung
- dart
- Erstellt
- 2026-08-17T11:53:32Z
Contract
- Cascade defaults to cascading only on 404 and 405 status codes, requiring explicit statusCodes or shouldCascade configuration to cascade past 400 Bad Request, 401 Unauthorized, or 500 Internal Server Error responses.
- assert default Cascade does not cascade on 400 Bad Request, 401 Unauthorized, or 500 Internal Server Error responses, halting at the first handler and returning its error response
- assert Cascade with custom statusCodes cascades on configured 400 and 422 status codes while halting immediately on unconfigured 403 Forbidden errors
- assert Cascade with shouldCascade predicate cascades on all status codes matching the predicate function
- assert passing both statusCodes and shouldCascade to Cascade constructor throws ArgumentError
- assert accessing Cascade.handler on an empty Cascade without inner handlers throws StateError
Dateien
- NOTES.md
- csx.json
- pubspec.lock
- pubspec.yaml
- test/contract.dart