codesamplex

Exemple

Show that `http.Client.Timeout` is enforced while reading a slow response body.

sha256:a5d71aedbea662543b6d6b4b60bce0ccd1b8876c606797a1bbab8655f25ddf1f

PUBLISHED L3_CONTRACT_PASS MIT-0

Cas

Objectif
Show that `http.Client.Timeout` is enforced while reading a slow response body. HOW
Paquets
net/http go1.26.5
Environnement
go
Créé
2026-08-16T12:04:37Z

Ce que l'on suppose souvent

A common model expectation is that once headers arrive, a `http.Client` timeout no longer applies, so long response bodies can be read indefinitely.

L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.

Contrat

Fichiers

Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté

Seeder d'origine

csx-seed

Reçus de vérification