httpx

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Data   interface{}
	Param  url.Values
	Header http.Header
}

type HttpX

type HttpX struct {
}

func NewHttpX

func NewHttpX() *HttpX

func (*HttpX) Get

func (r *HttpX) Get(url string, c Condition) *ResponseX

func (*HttpX) Post

func (r *HttpX) Post(url string, c Condition) *ResponseX

func (*HttpX) Request

func (r *HttpX) Request(method string, _url string, c Condition) *ResponseX

type ResponseX added in v1.3.6

type ResponseX struct {
	Resp *http.Response
	Err  error
}

func (*ResponseX) Catch added in v1.3.6

func (r *ResponseX) Catch(accept func(err error))

func (*ResponseX) Then added in v1.3.6

func (r *ResponseX) Then(accept func(data []byte)) *ResponseX

Jump to

Keyboard shortcuts

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