Stream-first HTTP Client for Go. Efficient, zero-buffer streaming for large HTTP payloads — built on top of net/http.
httpstream provides a minimal, streaming-oriented API for building HTTP requests without buffering entire payloads in memory.Ideal for large JSON bodies, multipart uploads, generated archives, or continuous data feeds.
- Stream data directly via io.Pipe—no intermediate buffers
- Constant memory usage (O(1)), regardless of payload size
- Natural backpressure (writes block when receiver is slow)
- Thin net/http wrapper—fully compatible
- Middleware support: func(http.RoundTripper) http.RoundTripper
- Fluent API for readability (GET, POST, Multipart, etc.)
- No goroutine leaks, no globals
httpstream connects your writer directly to the HTTP transport. Data is transmitted as it's produced, allowing the server to start processing immediately—without waiting for the full body to be buffered.