httpclient

package
v0.0.0-...-0dcd02c Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2017 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 7 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

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

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