httpclient

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSimpleHttpClient

func NewSimpleHttpClient(cnf ...*Config) *simpleHttpClient

Types

type Config

type Config struct {
	Timeout time.Duration
	Verbose bool
	Logger  *log.Logger  // stdout when nil, verbose should be true
	Client  *http.Client // if provided, we use this client
}

type HttpClient

type HttpClient interface {
	Do(*http.Request) (*Response, []byte, error)
}

type Response

type Response struct {
	*http.Response
}

Jump to

Keyboard shortcuts

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