liveBook · Manning

Http.Transport

http.Transport is a Go net/http type that performs HTTP requests and manages low-level network connections, including connection reuse.

How 2 Manning books explain it

Go in Practice, Second Edition

http.Transport is the Go net/http component that manages the low-level details of HTTP requests, including connection reuse.

How it is used
Manages HTTP connection behavior when applications use standard clients or construct custom transports.
How deep it goes
Explains defaults, keep-alive semantics, custom dialing, and response closure, but stops short of broader transport internals.
Examples
Demonstrates a custom transport using TLSClientConfig, disabled compression, net.Dialer settings, and an HTTPS request.
What you can do after
Operate/configure HTTP clients with connection reuse, custom TLS settings, compression choices, and dialer timeouts.

Read how Go in Practice, Second Edition explains http.Transport →

Go by Example

http.Transport is a Go HTTP transport implementation that performs request transmission and maintains a pool of reusable network connections.

How it is used
Optimizes concurrent HTTP clients by transmitting requests through reusable TCP connections.
How deep it goes
Explains Client delegation, RoundTripper, TCP pooling, and MaxIdleConnsPerHost tuning, but defers Transport internals.
Examples
Uses a concurrent HIT client configured with MaxIdleConnsPerHost, redirect prevention, and a thirty-second timeout.
What you can do after
Operate/configure an HTTP client with reusable connections, controlled redirects, and bounded request duration.

Read how Go by Example explains http.Transport →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.