http

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServerError = errors.New("http code not 200")
)

Functions

func GetDataWithHeader

func GetDataWithHeader(url string, params url.Values, headers map[string]string) ([]byte, *http.Response, error)

func Init

func Init(timeout int64, poolSize int) error

func PostDataWithHeader

func PostDataWithHeader(url string, params url.Values, headers map[string]string) ([]byte, *http.Response, error)

func SetRoundTripper

func SetRoundTripper(rt http.RoundTripper)

func SetVersion

func SetVersion(v string)

Types

type Config

type Config struct {
}

Jump to

Keyboard shortcuts

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