http2

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = http.Client{
	Transport: &http2.Transport{},
}
View Source
var (
	ErrEmptyHostAddress = errors.New("empty host addr")
)
View Source
var TRSClient = &trsh2.DefaultClient

Functions

func Get

func Get(url string) (resp *http.Response, err error)
func Head(url string) (resp *http.Response, err error)

func Post

func Post(url string, contentType string, body io.Reader) (resp *http.Response, err error)

func PostForm

func PostForm(url string, data url.Values) (resp *http.Response, err error)

func SetDefaultClientTimeout

func SetDefaultClientTimeout(t time.Duration)

Types

This section is empty.

Jump to

Keyboard shortcuts

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