package httputil
import "github.com/coreos/etcd/pkg/httputil"
Package httputil provides HTTP utility functions.
Index ¶
- func GracefulClose(resp *http.Response)
- func RequestCanceler(rt http.RoundTripper, req *http.Request) func()
Functions ¶
func GracefulClose ¶
GracefulClose drains http.Response.Body until it hits EOF and closes it. This prevents TCP/TLS connections from closing, therefore available for reuse.
func RequestCanceler ¶
func RequestCanceler(rt http.RoundTripper, req *http.Request) func()
Source Files ¶
- Version
- v3.0.8+incompatible
- Published
- Sep 9, 2016
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 25 minutes ago –
Tools for package owners.