httputil - ActiveState ActiveGo 1.8
...

Package httputil

import "github.com/coreos/etcd/pkg/httputil"
Overview
Index

Overview ▾

Package httputil provides HTTP utility functions.

func GracefulClose

func GracefulClose(resp *http.Response)

GracefulClose drains http.Response.Body until it hits EOF and closes it. This prevents TCP/TLS connections from closing, therefore available for reuse.