httpx

package
v1.1.17 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP_CLIENT_H10 = "HTTP/1.0"
	HTTP_CLIENT_H11 = "HTTP/1.1"
	HTTP_CLIENT_H20 = "HTTP/2.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClientX

type HttpClientX struct {
	Hc11 *http.Client
	Hc20 *http.Client
	// contains filtered or unexported fields
}

func (*HttpClientX) Do

func (c *HttpClientX) Do(req *http.Request) (*http.Response, error)

func (*HttpClientX) Get

func (c *HttpClientX) Get(urlsr string) (resp *http.Response, err error)

func (*HttpClientX) Head

func (c *HttpClientX) Head(urlsr string) (resp *http.Response, err error)

func (*HttpClientX) Post

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

func (*HttpClientX) PostForm

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

Jump to

Keyboard shortcuts

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