httpx

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewHttpX

func NewHttpX() *HttpX

func (*HttpX) Catch

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

func (*HttpX) Get

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

func (*HttpX) Post

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

func (*HttpX) Request

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

func (*HttpX) Then

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

Jump to

Keyboard shortcuts

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