type respTest …
func dummyReq(method string) *Request { … }
func dummyReq11(method string) *Request { … }
var respTests …
func TestReadResponse(t *testing.T) { … }
func TestWriteResponse(t *testing.T) { … }
var readResponseCloseInMiddleTests …
type readerAndCloser …
func TestReadResponseCloseInMiddle(t *testing.T) { … }
func diff(t *testing.T, prefix string, have, want any) { … }
type responseLocationTest …
var responseLocationTests …
func TestLocationResponse(t *testing.T) { … }
func TestResponseStatusStutter(t *testing.T) { … }
func TestResponseContentLengthShortBody(t *testing.T) { … }
func TestReadResponseErrors(t *testing.T) { … }
func matchErr(err error, wantErr any) error { … }
func TestResponseWritesOnlySingleConnectionClose(t *testing.T) { … }