httpclient

package
Version: v0.0.0-...-5027423 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 49

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.

Source Files

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL