type reqWriteTest …
var reqWriteTests …
func TestRequestWrite(t *testing.T) { … }
func TestRequestWriteTransport(t *testing.T) { … }
type closeChecker …
func (rc *closeChecker) Close() error { … }
func TestRequestWriteClosesBody(t *testing.T) { … }
func chunk(s string) string { … }
func mustParseURL(s string) *url.URL { … }
type writerFunc …
func (f writerFunc) Write(p []byte) (int, error) { … }
func TestRequestWriteError(t *testing.T) { … }
func dumpRequestOut(req *Request, onReadHeaders func()) ([]byte, error) { … }
type delegateReader …
func (r *delegateReader) Read(p []byte) (int, error) { … }
type dumpConn …
func (c *dumpConn) Close() error { … }
func (c *dumpConn) LocalAddr() net.Addr { … }
func (c *dumpConn) RemoteAddr() net.Addr { … }
func (c *dumpConn) SetDeadline(t time.Time) error { … }
func (c *dumpConn) SetReadDeadline(t time.Time) error { … }
func (c *dumpConn) SetWriteDeadline(t time.Time) error { … }