httpclient

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 8 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
Package mock_http is a generated GoMock package.
Package mock_http is a generated GoMock package.

Jump to

Keyboard shortcuts

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