request

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpRequest

type HttpRequest struct {
	ins.HttpConfigurations
}

func (HttpRequest) DoRequest

func (v HttpRequest) DoRequest(param *RequestParam, handler func(resp *resty.Response) error) (int, error)

type RequestParam

type RequestParam struct {
	// contains filtered or unexported fields
}

func NewRequestParam

func NewRequestParam() *RequestParam

func (*RequestParam) SetData

func (v *RequestParam) SetData(data []byte)

func (*RequestParam) SetFilename

func (v *RequestParam) SetFilename(filename string)

func (*RequestParam) SetHeader

func (v *RequestParam) SetHeader(key, value string)

func (*RequestParam) SetMethod

func (v *RequestParam) SetMethod(method string)

func (*RequestParam) SetQuerypath

func (v *RequestParam) SetQuerypath(querypath string)

type RequestURL

type RequestURL struct {
	url.URL
}

func (*RequestURL) DoRequest

func (v *RequestURL) DoRequest(param *RequestParam, handler func(resp *resty.Response) error) (int, error)

Jump to

Keyboard shortcuts

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