Beispiel
guzzlehttp/guzzle 7.15.3: Distinguish Guzzle 7 PSR-18 sendRequest behavior from send on HTTP error status codes, redirects, and network exception types
Verifiziertes Beispiel für composer guzzlehttp/guzzle 7.15.3: Distinguish Guzzle 7 PSR-18 sendRequest behavior from send on HTTP error status codes…
sha256:127a21df5b67e48e68eacb2abf9bfd419723a89b1cf901e61bff910bf98eec24
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
php linux x64 php php composer
Umgebungen der Verifizierungsläufe
| Umgebung | Contract | Stufen | Lauf |
|---|---|---|---|
| php 8 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-16 |
| php 8 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-18 |
Fall
HOW- Ziel
- Distinguish Guzzle 7 PSR-18 sendRequest behavior from send on HTTP error status codes, redirects, and network exception types
- Pakete
- Symbole
-
- GuzzleHttp\Client
- GuzzleHttp\ClientInterface
- GuzzleHttp\Exception\ConnectException
- Psr\Http\Client\ClientInterface
- Umgebung
- php
- Erstellt
- 2026-08-16T12:36:34Z
Contract
- PSR-18 sendRequest returns 4xx and 5xx status codes as valid ResponseInterface instances without throwing ClientException even when http_errors is enabled by default
- PSR-18 sendRequest returns 3xx redirect responses directly without following location headers even when allow_redirects is enabled by default
- Standard send follows 3xx redirects to destination and throws ClientException on 4xx responses under default client options
- ConnectException implements PSR-18 NetworkExceptionInterface and ClientExceptionInterface and preserves the failed RequestInterface
- Client implements Psr\Http\Client\ClientInterface and ClientInterface::MAJOR_VERSION is 7
Dateien
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php