request

package
v0.0.0-...-a1f9732 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpUtils

type HttpUtils struct {
	Cookie string

	DataFormString string
	ResultBody     []byte
	Config         Template.ConfigRequest
	// contains filtered or unexported fields
}

func NewHttpUtils

func NewHttpUtils(host string, path string, method string, Config Template.ConfigRequest) *HttpUtils

func (*HttpUtils) Add

func (is *HttpUtils) Add(key string, value string) *HttpUtils

func (*HttpUtils) AddAll

func (is *HttpUtils) AddAll(params map[string]string) *HttpUtils

func (*HttpUtils) AddString

func (is *HttpUtils) AddString(value string) *HttpUtils

func (*HttpUtils) AppSecurity

func (is *HttpUtils) AppSecurity() string

func (*HttpUtils) GetCookie

func (is *HttpUtils) GetCookie() []*http.Cookie

func (*HttpUtils) GetEncodeParams

func (is *HttpUtils) GetEncodeParams() *bytes.Reader

func (*HttpUtils) GetResult

func (is *HttpUtils) GetResult() string

func (*HttpUtils) GetUrl

func (is *HttpUtils) GetUrl() string

func (*HttpUtils) GetValue

func (is *HttpUtils) GetValue(key string) string

func (*HttpUtils) NewRequests

func (is *HttpUtils) NewRequests() *HttpUtils

func (*HttpUtils) PutData

func (is *HttpUtils) PutData() *strings.Reader

func (*HttpUtils) SetHeaders

func (is *HttpUtils) SetHeaders()

func (*HttpUtils) Unmarshal

func (is *HttpUtils) Unmarshal(s any) *HttpUtils

func (*HttpUtils) WeChatBasic

func (is *HttpUtils) WeChatBasic() string

func (*HttpUtils) WriteResultString

func (is *HttpUtils) WriteResultString()

Jump to

Keyboard shortcuts

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