httpclient

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultClient is a http client with timeouts set
	DefaultClient = &http.Client{
		Timeout:   100 * time.Second,
		Transport: defaultTransport,
	}
)

Functions

func DoRequest

func DoRequest(client *http.Client, req *http.Request, dumpReqBody, dumpRespBody bool) (*http.Response, error)

DoRequest wraps http.Client.Do but dumps the request and response with optional bodies

Types

This section is empty.

Jump to

Keyboard shortcuts

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