httputil

package
v3.1.0-rc.1.0...-a42b399 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package httputil provides HTTP utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

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.

func RequestCanceler

func RequestCanceler(req *http.Request) func()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL