package httputil

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

Package httputil provides HTTP utility functions.

Index

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.

Source Files

httputil.go

Version
v3.3.12+incompatible
Published
Feb 7, 2019
Platform
js/wasm
Imports
3 packages
Last checked
49 minutes ago

Tools for package owners.