httpclient

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2016 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 5 Imported by: 0

Documentation

Overview

Package httpclient provides a thin, but testable, wrapper around http.Client. It adds an ECS header to requests and provides an interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v1.1.0

func New(timeout time.Duration, insecureSkipVerify bool) *http.Client

New returns an ECS httpClient with a roundtrip timeout of the given duration

Types

type OverridableTransport added in v1.1.0

type OverridableTransport interface {
	SetTransport(http.RoundTripper)
}

OverridableTransport is a transport that provides an override for testing purposes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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