codesamplex

Sample

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

sha256:a5d71aedbea662543b6d6b4b60bce0ccd1b8876c606797a1bbab8655f25ddf1f

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Show that `http.Client.Timeout` is enforced while reading a slow response body. HOW
Packages
net/http go1.26.5
Environment
go
Created
2026-08-16T12:04:37Z

Commonly assumed

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

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts